圖片透明在某些特殊的情況下還是比較實用的,下面是用濾鏡寫的圖片透明CSS代碼
.naver_on_keleyi_com { width:75px;height:54px; background:url(http:///keleyi/phtml/image/img/viper_corner.jpg) no-repeat ;}
* html .naver_on { width:75px; height:54px; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="http:///keleyi/phtml/image/img/viper_corner.jpg"); background:none;}
更多參考:
/* 值越大,越不透明*/
img {
opacity: .75; /* Standard: FF gt 1.5, Opera, Safari */
filter: alpha(opacity=75); /* IE lt 8 */
-ms-filter: "alpha(opacity=75)"; /* IE 8 */
-khtml-opacity: .75; /* Safari 1.x */
-moz-opacity: .75; /* FF lt 1.5, Netscape */
}