CSS3 Box-shadow (Shadow use)

Source: Internet
Author: User

From:http://jingyan.baidu.com/article/03b2f78c4d9fae5ea237aea6.html

CSS3 Box-shadow inner Shadow and outer shadow

1-

Box-shadow specific use method, syntax:

E {box-shadow:inset x-offset y-offset blur-radius Spread-radius Color} In other words: Object selector {text-shadow: Projection mode x-axis offset y-axis offset shadow blur radius shadow extension Radius Shadow Color}

Value: Delivery Method: The default is the outer shadow,

The Box-shadow property has a maximum of 6 parameter settings, each of which is evaluated:

Shadow type: This parameter is an optional value, and if no value is set, its default projection is an outer shadow, and if its unique value is "inset", the outer shadow becomes an inner shadow, that is, when the shadow type is "inset", its projection is the inner shadow;

X-offset: Refers to the shadow horizontal offset whose value can be positive or negative, if the value is positive, the shadow is on the right side of the object, and the value is negative, the shadow is on the left side of the object;

Y-offset: Refers to the vertical offset of the shadow, its value can also be positive negative, if it is positive, the shadow at the bottom of the object, and conversely its value is negative, the shadow at the top of the object;

Shadow Blur radius: This parameter is optional, but its value can only be positive, and if its value is 0 o'clock, indicates that the shadow does not have a blur effect, the greater the value of the shadow the more blurred the edge;

Shadow expansion radius: This parameter is optional, its value can be positive negative, if the value is positive, then the entire shadow expands, the inverse value is negative, then shrinks

-moz-box-shadow:5px 5px 5px #999 inset; -webkit-box-shadow:5px 5px 5px #999 inset; box-shadow:5px 5px 5px #999 inset;

-moz-box-shadow:-5px-5px 5px #999 inset; -webkit-box-shadow:-5px-5px 5px #999 inset; box-shadow:-5px-5px 5px #999 inset;

CSS3 Box-shadow (Shadow use)

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.