css样式

个人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);} 

你可能感兴趣的:(css,前端)