Css3.0 preemptive viewing (4): Box-shadow creates a cool blur shadow

Source: Internet
Author: User

ArticleFromWww.css3s.cn

The background and border modules of css3.0 Add a cool attribute box-shadow. Obviously, the name can be used to guess the shadow effect. Currently, it can only be supported by the safari3 browser. After reading the example below, we can see what is going on.

Example 1:

Safari 3Users can see 5 pixels of blurred back here

CSSCodeAs follows:

-WebKit-box-Shadow: 10px 10px 5px #888; padding: 5px 5px 5px 15px;
Note:-WebKit-box-Shadow: 10px 10px 5px # The parameters in 888 indicate the shadow horizontal offset values (positive and negative values are recommended. In this example
10px); shadow vertical offset value (positive and negative values are acceptable, 10 Px in this example); shadow blur value (5px in this example); shadow color (#888 in this example ).
Example 2:
Safari 3Users can see the pure black back here
 
The CSS code is as follows:
-WebKit-box-Shadow:-10px-10px 0px #000;-WebKit-border-radius: 5px; padding: 5px 5px 5px 15px;

Article fromWww.css3s.cn

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.