Home>Article>Web Front-end> Is box-shadow a new attribute in CSS3?

Is box-shadow a new attribute in CSS3?

WBOY
WBOY Original
2021-12-15 12:01:28 2608browse

"box-shadow" is a new attribute of CSS3. The function of the "box-shadow" attribute is to add one or more shadows to the element box. The syntax is "element {box-shadow: horizontal shadow position vertical shadow position blur spread color inset;}".

Is box-shadow a new attribute in CSS3?

The operating environment of this tutorial: Windows 10 system, CSS3&&HTML5 version, Dell G3 computer.

Is box-shadow a new attribute of css3?

box-shadow is a new attribute of css3.

The box-shadow property is used to add one or more shadows to a box. The syntax of this attribute is as follows:

box-shadow: h-shadow v-shadow blur spread color inset;

The attribute value is expressed as follows:

Is box-shadow a new attribute in CSS3?

The example is as follows:

    

Output result:

Is box-shadow a new attribute in CSS3?

(Learning video sharing:css video tutorial)

The above is the detailed content of Is box-shadow a new attribute in CSS3?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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