CSS background gradient, rounded corner, shadow usage and compatibility

Source: Internet
Author: User
# Mydiv { Width : 30% ; Height : 50% ; Min-height : Pixel PX ; Float : Left ; Border : 1px solid white ; /*  The following shows the gradient background of various browsers:  */     /*  WebKit, such as chrome and Safari  */  Background : -WebKit-gradient (linear, 0% 0%, 100% 0%, from (# b1d2eb), to (#8ec0e7 )) ; /*  IE Series  */  Filter : Progid: DXImageTransform. Microsoft. gradient (gradienttype = 1, startcolorstr = # b1d2eb, endcolorstr = #8ec0e7) ; /*  Firefox  */ Background : -Moz-linear-gradient (left, # b1d2eb, #8ec0e7) No-repeat ; /*  Opera  */  Background : -O-linear-gradient (left, # b1d2eb 0%, #8ec0e7 100%) ;}
Parameter: IE filter: parameter: startcolorstr start color endcolorstr end color gradienttype: 0 time table vertical, 1 time table horizontal Firefox parameter: Top, bottom vertical, left, right level for example: top gradient from # b1d2eb to #8ec0e7 at the top, and bottom gradient from # b1d2eb to #8ec0e7 at the bottom. Opera parameters: Top, bottom vertical, left, Right horizontal, for example: top gradient from # b1d2eb to #8ec0e7, bottom gradient from # b1d2eb to #8ec0e7 WebKit, such as chrome and Safari Background:-WebKit-gradient (linear, 0% 0%, 0% 100%, from (# b1d2eb), to (#8ec0e7 ));
/*Shadow*/Box-Shadow: 5px 5px 5px #61a5d5;/*IE 9.0 or above*/-Moz-box-Shadow: 5px 5px 5px #61a5d5;/*Firefox*/-WebKit-box-Shadow: 5px 5px 5px #61a5d5;/*Chrome, etc.*//*Corner, ie9.0 to, ie8.0 and below can be solved using jquery plug-in*/Border-radius: 8px;

 

Related Article

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.