How to implement css shadow effect

coldplay.xixi
Release: 2023-01-03 09:26:50
Original
4555 people have browsed it

How to implement css shadow effect: use the attribute [Box-shadow] to express the shadow effect, inner shadow [box-shadow:inset 2px 2px 5px #000]; outer shadow [box-shadow:2px 2px 5px # 000].

How to implement css shadow effect

The operating environment of this tutorial: windows7 system, css3 version, DELL G3 computer.

How to implement css shadow effect:

Using the Box-shadow attribute to express the shadow effect is a very useful technique in modern browsers , we can make a lot of really cool stuff with it.

Basic usage

How to implement css shadow effect

How to implement css shadow effect

##Outer shadow

box-shadow:2px 2px 5px #000;
Copy after login

How to implement css shadow effect

box-shadow:0px 0px 10px #000;
Copy after login

How to implement css shadow effect

Inner Shadow

How to implement css shadow effect

box-shadow:inset 2px 2px 5px #000;
Copy after login

Shadow Extended length value

How to implement css shadow effect

box-shadow:0px 0px 5px 10px #000;
Copy after login

How to implement css shadow effect

box-shadow:0px 15px 10px -15px #000;
Copy after login

How to implement css shadow effect

box-shadow:inset 0px 15px 10px -15px #000;
Copy after login

multiple shadows

box-shadow:0px 0px 0px 3px #bb0a0a,
           0px 0px 0px 6px #2e56bf,
           0px 0px 0px 9px #ea982e;
Copy after login

How to implement css shadow effect

#Related tutorial recommendations:

CSS video tutorial

The above is the detailed content of How to implement css shadow effect. For more information, please follow other related articles on the PHP Chinese website!

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