懂你所需,做你所想

16

March

webdesign

css 常用样式集锦

time: March 16, 2017
post: by www.bjsykc.com

1、设置透明度 样式:

 filter:alpha(opacity=50);  
      -moz-opacity:0.5;  
      -khtml-opacity: 0.5;  
      opacity: 0.5;  

 

2、设置图层上下浮动
{
position:absolute;  绝对位置
left:0px;
top:0px;
z-index:-1;
}

{
position:relative;  相对位置
left:0px;
top:0px;
z-index:-1;
}