Archive

Posts Tagged ‘浏览器半透明’

CSS半透明滤镜在FIREFOX和IE下面的能够通用的写法

October 18th, 2008 No comments

CSS半透明滤镜在FIREFOX和IE下面的能够通用的写法,记录下来备用:

CSS代码
  1. .test{   
  2.   background:#000;   
  3.   color:white;   
  4.   width:200px;   
  5.   position:absolute;   
  6.   left:10px;   
  7.   top:10px;   
  8.    filter: Alpha(opacity=10);   
  9.    -moz-opacity:.1;   
  10.    opacity:0.1;   
  11. }  

这里关键的是

CSS代码
  1. filter: Alpha(opacity=10);   
  2.    -moz-opacity:.1;   
  3.    opacity:0.1;  

这三句,第一句是ie 支持.第二三句是firefox支持的,但是版本不一样就有两种了,所以用时候把三句都加上就行了

转载来源  http://hi.baidu.com/hfgyd2616/blog/item/4e4527a4881866f39052ee2b.html

  • Share/Bookmark