CSS3 tutorial-box-shadow property

黄舟
Release: 2016-12-27 16:08:42
Original
1807 people have browsed it

Hello! Dear front-end developers, after reading the CSS3 tutorial - the first attribute of the border, are you looking forward to its second attribute, box-shadow? Don't worry, the front-end development network will introduce it to you one by one.

First let’s look at an example:

Add box-shadow to a div element:

div
{
box-shadow: 10px 10px 5px #888888;
}
Copy after login

Browser support:

CSS3 tutorial-box-shadow property

IE9+, Firefox 4, Chrome, Opera and Safari 5.1.1 support the box-shadow attribute.

Definition and Usage:

The box-shadow property adds one or more shadows to the box.

Tip: Please use border-image-* properties to construct beautiful scalable buttons!

CSS3 tutorial-box-shadow property

Syntax:

box-shadow: h-shadow v-shadow blur spread color inset;
Copy after login

Comments: box-shadow adds one or more shadows to the box. This property is a comma-separated list of shadows, each specified by 2-4 length values, an optional color value, and the optional inset keyword. The value for omitted length is 0.

CSS3 tutorial-box-shadow property

The above is the content of CSS3 tutorial-box-shadow attribute. For more related content, please pay attention to the PHP Chinese website (www.php.cn)!


Related labels:
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!