[Learn one CSS3 property a day] Part 2: box-shadow_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:52:47
Original
890 people have browsed it

I’m busy today and haven’t been able to take a good look at new things. Let’s record a commonly used CSS3 property: box-shadow, which represents shadow. If border-radius rounded corners are set, the shadow will also be rounded.

box-shadow is currently a property supported by IE9 and above and other modern browsers.

Syntax:

Formal syntax: none | [inset? && [ <offset-x> <offset-y> <blur-radius>? <spread-radius>? <color>? ] ]#
Copy after login

Value:

inset: Indicates that the shadow is inside the border (even if there is no border), above the background , under the content;

offset-x and offset-y: offset, positive value means left and downward;

blur-radius: blur radius, default 0, cannot be Negative value;

spread-radius: positive value will expand the shadow, negative value will shrink it, the default is 0.

color: Color, if it is not defined, it will be determined by the browser.

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template