Home >Web Front-end >CSS Tutorial >How to set irregular shadows in css

How to set irregular shadows in css

醉折花枝作酒筹
醉折花枝作酒筹Original
2021-04-26 17:28:363743browse

In CSS, you can use the drop-shadow attribute to set irregular shadows. You only need to set the "filter:drop-shadow (value value value color value)" style to the element. The drop-shadow function sets a blurry shadow effect to the image.

How to set irregular shadows in css

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

Irregular pictures are used as backgrounds in the project, and shadow effects need to be used, as shown in the picture:

How to set irregular shadows in css

If you use box-shadow, there will be depressions. The semicircle does not appear on a white background.
You can use css to achieve shadow effects and solve your needs.

filter: drop-shadow(0px 3px 7px rgba(0, 0, 0, 0.07));

Recommended learning: css video tutorial

The above is the detailed content of How to set irregular shadows in css. 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