This may have been used by everyone. Today I will share with you that this effect uses some styles in css3 and is compatible with IE6, IE7, IE8, friefox, and chreom browsers;
CodeDemo:
<
Html >
< Head > < Title > Test host Content-Type </ Title >
< Style Type = "Text/CSS" >
. Test {
Width : 560px ;
Height : 400px ;
Background-color : # Ffffff ;
Padding : 10px 8px 6px ;
Border : 1px solid #000 ;
Margin-bottom : 10px ;
/* Rounded corner */
Border-radius : 5px ; /* IE6, the value size can change the angle radian size */
Behavior : URL (http://share.job9151.com/ie-css3.htc) ; /* IE6 */
-Moz-border-radius : 5px ; -WebKit-border-radius : 5px ; /* The radians of non-IE6 values can be changed. */
/* Gradient */
Filter : Progid: DXImageTransform. Microsoft. gradient (gradienttype = 0, startcolorstr = # b8c4cb, endcolorstr = # f6f6f8) ; /* IE6 */
Background : -Moz-linear-gradient (top, # b8c4cb, # f6f6f8) ; /* Others other than IE6 */
Background : -WebKit-gradient (linear, 0% 0%, 0% 100%, from (# b8c4cb), to (# f6f6f8 )) ; /* Others other than IE6 */
}
</ Style >
</ Head >
< Body >
< Div Class = "Test" >
This page is used to test whether the host has the correct Content-Type.
</ Div >
</ Body >
</ Html
>
Download the HTC file and demo page:Iecss3.rar(4.16 KB)
If IE6 does not work, you may need to download the HTC file to the directory
Http://www.websjy.com/bbs/viewthread.php? Tid = 9968