This time I will bring you how to set translucent elements. What are the precautions for setting translucent elements? The following is a practical case, let’s take a look.
.opacity{ filter:alpha(opacity=50);/* IE */ -moz-opacity:0.5;
/* Browsers that support opacity*/}
Used to set an element to be semi-transparent
.filter = "alpha(opacity=" + opacity + ")"; /* IE */ .MozOpacity = (opacity / 100); /* 老版Mozilla */ .KhtmlOpacity = (opacity / 100); /* 老版Safari */ .opacity = (opacity / 100); /* 支持opacity的浏览器*/
Picture
, may appear For image distortion, you can use IE's proprietary command:img{-ms-interpolation-mode: bicubic;}
Four hiding methods in html+css
Detailed explanation of the use of linear-gradient
Detailed explanation of the use of border-image in css style
The above is the detailed content of Set translucent elements. For more information, please follow other related articles on the PHP Chinese website!