Compatible with corner and color gradient effects of IE6, IE7, IE8, friefox, and chreom browsers

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.