您的位置:首页 > Web前端 > CSS

css样式

2016-03-28 16:43 531 查看

个人css前端比较常用

元素绝对定位: position: absolute

显示当前 position:fixed;

属性最顶层 z-index:9999;

背景灰色 background: rgba(0,0,0,0.8)或者background: rgb(0,0,0,0.8);

隐藏效果 display:none;

背景大小设计 background-size:100% auto;

背景图片 background: url("../images/xm.png");

字体大小 font-size:0.6rem;

li标签去掉点 list-style: none;

外边距自动 margin:1rem auto;

背景颜色 background:rgb(204,204,204) ;

按钮圆角设计 border-radius:0.6rem;(元素为正方形,把像素设为高宽一半)

字体白色 color:white;

透明度 filter:alpha(Opacity=70);或者 opacity:0.3;

字体行高 line-height:2rem;

字体间距 letter-spacing: 6px;

隔行换色 tr:nth-child(2n){ background: rgb(171,186,206);}

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: