垂直居中
.item |
全屏显示
page |
图片制为灰色
.image |
背景渐变动画(雪碧图原理)
.bg |
文字截断
单行文本
overflow hidden |
多行文本
display -webkit-box |
line-height
控制文字只展示两行 |
清除浮动
.clearfix |
全局文本
body, html |
扩展点击区域
.item |
根据分辨率设置不同的背景图
bg-image($url) |
通用媒体查询
|
文本选择样式
::selection |
盒阴影
内盒阴影
box-shadow:inset 2px 0 4px #000; |
外盒阴影
box-shadow: 0 2px 2px -2px rgba(0,0,0,.5) |
三角形绘制
.bg |
表单输入效果
- 边框阴影
input[type=text] { |
label跳动
.els-input{
margin-left: 20px;
display: inline-block;
height: 50px;
line-height: 50px;
color: #606266;
border: 1px solid #dcdfed;
outline: none;
padding: 0 15px;
font-size: 13px;
border-radius: 4px;
transition: all .2s;
}
.input-wrapper{
position: relative;
}
.label{
position: absolute;
font-size: 13px;
left: 35px;
top: 18px;
transition: all .2s;
}
.els-input:focus{
border:1px solid #409EFF;
}
.els-input:focus + .label{
top:5px;
left: 25px;
font-size: 10px;
font-weight: 600;
opacity: 1;
}