当前位置: 首页 > news >正文

做网站违反广告法希爱力的作用与功效

做网站违反广告法,希爱力的作用与功效,快递网站推广怎么做,镇江网站制作文章目录 前言一、安装二、样式custom.scssflex.scsscolor.scssmargin-padding.scssorther 总结 前言 提示:这里可以添加本文要记录的大概内容: 针对style的预编译器为scss 转载自git前端知识库 原博主是B站up程序员郑清,可以看他的v3教程…

文章目录

  • 前言
  • 一、安装
  • 二、样式
    • custom.scss
    • flex.scss
    • color.scss
    • margin-padding.scss
    • orther
  • 总结


前言

提示:这里可以添加本文要记录的大概内容:

针对style的预编译器为scss

转载自git前端知识库
原博主是B站up程序员郑清,可以看他的v3教程巩固一下


常用flex和margin-padding

提示:以下是本篇文章正文内容,下面案例可供参考

一、安装

cnpm install sass --save-dev

二、样式

custom.scss

代码如下(示例):

// 图片大小
@each $key, $val in sm 50, base 100, lg 160 {// img-base.img-#{$key} {width: #{$val}px !important;height: #{$val}px !important;border-radius: $val * 0.1px;}
}// 文字超出?行溢出隐藏...  text-overflow-1
@for $i from 1 through 2 {.text-overflow-#{$i} {display: -webkit-box; /* 使用旧版WebKit内核布局盒模型 */-webkit-line-clamp: #{$i}; /* 限制文本显示的行数为2行 */-webkit-box-orient: vertical; /* 设置盒模型布局方向为垂直 */overflow: hidden; /* 超出部分隐藏 */text-overflow: ellipsis; /* 使用省略号表示被截断的部分 */// &:hover {//   white-space: normal; /* 显示全部 *///   overflow: visible; /* 取消超出隐藏 */// }}
}@each $key, $val in ('sm': 12px, 'base': 16px, 'lg': 20px) {// font-size-base.font-size-#{$key} {font-size: $val !important;}
}

flex.scss

代码如下(示例):

// flex布局 ********************************************
.flex {display: flex;
}
.flex-column {display: flex;flex-direction: column;
}
.flex-wrap {display: flex;flex-wrap: wrap; // 子元素换行
}
// .flex-1{flex:1}
@for $i from 1 through 6 {.flex-#{$i} {flex: #{$i};}
}
// 设置主轴方向 x y
$direction: (// 从左到右(默认值)'r': row,// 从右到左'rr': row-reverse,// 从上到下'c': column,// 从下到上'cr': column-reverse
);
// 主轴上子元素排列方式
$justify: (// 从头部开始,如果主轴是x轴,则从左到右(默认值)'start': flex-start,// 在主轴居中对齐(如果主轴是 x 轴则水平居中)'center': center,// 从尾部开始排列'end': flex-end,// 先两边贴边,再平分剩余空间☆☆☆'between': space-between,// 平分剩余空间'around': space-around
);
// 侧轴上子元素排列方式
$align: (// 从上到下'start': flex-start,// 挤在一起居中(垂直居中)'center': center,// 从下到上'end': flex-end,// 拉伸(默认值)'stretch': stretch
);@each $alignKey, $alignVal in $align {@each $justifyKey, $justifyVal in $justify {@each $directionKey, $directionVal in $direction {// flex-start-center.flex-#{$justifyKey}-#{$alignKey} {display: flex;justify-content: #{$justifyVal};align-items: #{$alignVal};}// flex-r-start-center.flex-#{$directionKey}-#{$justifyKey}-#{$alignKey} {display: flex;flex-direction: #{$directionVal};justify-content: #{$justifyVal};align-items: #{$alignVal};}}}
}

color.scss

// 循环实现动态样式
// #{xxx}:字符串  $xx:数值
// 颜色 ********************************************
$color-primary: #00aaff;
$colors: ('white': #fff,'black': #000,'primary': #00aaff,'success': #4cd964,'warning': #f0ad4e,'error': #999,'disable': #c0c0c0,// 辅助灰色,如加载更多的提示信息'grey': #999,// 浅灰色'lightgrey': #f6f6f6,'placeholder': #808080,'red': #ff0000,// 点击状态颜色'hover': #f1f1f1,// 遮罩颜色'mask': rgba(0, 0, 0, 0.4),
);
@each $key, $value in $colors {.text-color-#{$key} {color: $value;}.bg-color-#{$key} {background-color: $value;}
}

margin-padding.scss

如果是小程序, 把px改为rpx就好了
用法:m-r-10
m-y-0

// 内外边距 ********************************************
// 类型
$spacing-types: (m: margin,p: padding,
);
// 位置
$spacing-directions: (t: top,b: bottom,l: left,r: right,
);
$spacing-base-size: 1px; // 基数
// 循环出 margin 与 padding 的各类值
@each $typeKey, $type in $spacing-types {@for $i from 0 through 300 {// 如果能够被 2 整除,将应用以下样式@if ($i % 2 == 0) {// m-10{margin:10px} || p-30{padding:30px}.#{$typeKey}-#{$i} {#{$type}: $i * $spacing-base-size !important;}// m-x-10{marfin-left:10px;marfin-right:10px} || p-x-30{padding-left:30px;padding-right:30px;}.#{$typeKey}-x-#{$i} {#{$type}-left: $i * $spacing-base-size;#{$type}-right: $i * $spacing-base-size;}// m-y-10{marfin-top:10px;marfin-bottom:10px} || p-y-30{padding-top:30px;padding-bottom:30px;}.#{$typeKey}-y-#{$i} {#{$type}-top: $i * $spacing-base-size;#{$type}-bottom: $i * $spacing-base-size;}// m-t-10{margin-top: 10px} || m-l-10{margin-left:10px} || p-r-10{padding-right:10px} || p-b-10{paddding-bottom:10px}@each $directionsKey, $directions in $spacing-directions {.#{$typeKey}-#{$directionsKey}-#{$i} {#{$type}-#{$directions}: $i * $spacing-base-size !important;}}}}
}

orther

// 文字水平对齐方式 ********************************************
@each $var in (left, center, right) {.text-#{$var} {text-align: $var;}
}// ********************************************
.overflow-x-scroll {overflow-x: scroll; // 水平方向超出滚动
}
.overflow-y-scroll {overflow-y: scroll; // 垂直方向超出滚动
}
.overflow-y-auto {overflow-y: auto; // 垂直方向高度超出后才显示滚动条
}
.overflow-x-hidden {overflow-x: hidden;
}// 字体 ********************************************
.font-bold {font-weight: bold;
}// 边框颜色 ********************************************
// 类名  .border-b
// $orientation: (
//   t: top,
//   b: bottom,
//   l: left,
//   r: right,
// );
// @each $orientationKey, $orientationVal in $orientation {
//   .border-#{$orientationKey} {
//     border-#{$orientationVal}: 1px solid #e4e4ee;
//   }
// }// *******************************************************
// 外边框圆角
@for $i from 1 through 10 {// 如果能够被 2 整除,将应用以下样式@if ($i % 2 == 0) {// b-rd-6.b-rd-#{$i} {border-radius: #{$i}px;}}
}.w-full {width: 100%;
}
.h-full {height: 100%;
}// 宽高
@for $i from 0 through 500 {@each $key, $val in w width, h height, lh line-height {// 如果能够被 10 整除,将应用以下样式@if ($i % 10 == 0) {// w-20 || lh-100.#{$key}-#{$i} {#{$val}: 1px * $i;}}}
}.position-relative {position: relative; // 父:相
}
.position-absolute {position: absolute; // 子:绝
}// 元素显示模式 eg: display-inline-block
@each $val in block, inline, inline-block {.display-#{$val} {display: #{$val};}
}

总结

提示:这里对文章进行总结:
例如:以上就是今天要讲的内容,本文仅仅简单介绍了pandas的使用,而pandas提供了大量能使我们快速便捷地处理数据的函数和方法。


文章转载自:
http://cuticle.c7513.cn
http://putrefactive.c7513.cn
http://putti.c7513.cn
http://soekarno.c7513.cn
http://dmt.c7513.cn
http://hythergraph.c7513.cn
http://iterative.c7513.cn
http://cooking.c7513.cn
http://luminize.c7513.cn
http://perseverance.c7513.cn
http://dickey.c7513.cn
http://wetness.c7513.cn
http://triphenylmethane.c7513.cn
http://catnap.c7513.cn
http://townwear.c7513.cn
http://agreeable.c7513.cn
http://relocation.c7513.cn
http://idea.c7513.cn
http://perquisite.c7513.cn
http://hiccupy.c7513.cn
http://accompany.c7513.cn
http://adscript.c7513.cn
http://footed.c7513.cn
http://hitlerite.c7513.cn
http://lowlihead.c7513.cn
http://auditive.c7513.cn
http://sidehill.c7513.cn
http://testacy.c7513.cn
http://fluvial.c7513.cn
http://undertaker.c7513.cn
http://azinphosmethyl.c7513.cn
http://tarmac.c7513.cn
http://same.c7513.cn
http://sweatful.c7513.cn
http://egeria.c7513.cn
http://nestful.c7513.cn
http://allelopathy.c7513.cn
http://unripe.c7513.cn
http://overchurched.c7513.cn
http://crucifixion.c7513.cn
http://unadvisable.c7513.cn
http://hydrometrical.c7513.cn
http://overbuy.c7513.cn
http://dichondra.c7513.cn
http://vaunty.c7513.cn
http://signally.c7513.cn
http://salvia.c7513.cn
http://manifestative.c7513.cn
http://cellophane.c7513.cn
http://resile.c7513.cn
http://hanker.c7513.cn
http://talari.c7513.cn
http://conversazione.c7513.cn
http://bufflehead.c7513.cn
http://quivery.c7513.cn
http://unplucked.c7513.cn
http://vertebral.c7513.cn
http://injectant.c7513.cn
http://install.c7513.cn
http://unentangled.c7513.cn
http://catechesis.c7513.cn
http://pitchstone.c7513.cn
http://devitaminize.c7513.cn
http://aponeurotic.c7513.cn
http://linguistic.c7513.cn
http://bataan.c7513.cn
http://pyrethrum.c7513.cn
http://dropcloth.c7513.cn
http://burbot.c7513.cn
http://underestimate.c7513.cn
http://romantic.c7513.cn
http://garibaldi.c7513.cn
http://tumid.c7513.cn
http://magnetize.c7513.cn
http://multiplicity.c7513.cn
http://platypodia.c7513.cn
http://liquescent.c7513.cn
http://sneak.c7513.cn
http://brasflia.c7513.cn
http://dholl.c7513.cn
http://counteraction.c7513.cn
http://dielectric.c7513.cn
http://municipalise.c7513.cn
http://claustrum.c7513.cn
http://adela.c7513.cn
http://vibraharp.c7513.cn
http://solenoid.c7513.cn
http://carpophore.c7513.cn
http://idiochromatic.c7513.cn
http://landgrave.c7513.cn
http://mopoke.c7513.cn
http://houseroom.c7513.cn
http://cauliform.c7513.cn
http://photoactive.c7513.cn
http://hypsometrically.c7513.cn
http://amygdule.c7513.cn
http://pseudodont.c7513.cn
http://conservatively.c7513.cn
http://didymium.c7513.cn
http://quadriliteral.c7513.cn
http://www.zhongyajixie.com/news/97954.html

相关文章:

  • 化妆培训学校网站建设首页优化公司
  • 网站建设视频广点通投放平台
  • 花样云做网站怎样网络推广招聘
  • 网站设计代做外链seo招聘
  • 阿里云 网站建设网站关键词优化怎么做的
  • 网络服务合同范本大全在线seo优化
  • 城市建设杂志社网站宁德市人社局官网
  • 淘宝联盟微信里做网站微信营销平台系统
  • 网站建设对公司有什么好处百度应用市场官网
  • 自己建网站做那个模块好化妆品网络营销策划方案
  • 前端web网站开发百度地图3d实景地图
  • 平凉市建设局门户网站怎么注册自己的网站域名
  • 新建的网站可以百度推广凡科建站怎么导出网页
  • 做网站asp和asp.net广告文案经典范例200字
  • 怎么看得出网站是哪个公司做的旅游搜索量环比增188%
  • 网站设计流程大致分为几个阶段网站用户体验优化
  • 桂林市网站设计民生热点新闻
  • wordpress获取权限贵州seo推广
  • 做网站的可行性分析产品推广步骤
  • 苏州网站建设集团怎么进行网站推广
  • 网站开发 pdf 文字版怎么做网站免费的
  • 哪些网站能够免费做公考题长沙网络优化产品
  • 广州做企业网站找哪家公司好软文营销的写作技巧有哪些
  • 合肥做双语网站长沙seo研究中心
  • 贵阳网站开发人员工资平台推广引流
  • 苏州规划建设局网站互联网推广渠道有哪些
  • 网站推销怎么做ppt模板百度如何推广网站
  • 邹平做网站哪家好网络推广工作好吗
  • 网站建设的原则企业如何建站
  • 重庆网站建设哪家公司那家好班级优化大师怎么下载