This article mainly introduces the use of css to achieve shadow effects, which has certain reference value. Now I share it with everyone. Friends in need can refer to it
Realizing css shadow effects
.tesr{ width: 96%; margin-left: 2%; padding-top: 5%; margin-top: 5%; box-shadow: -2px 0 0 #1aad19, //左阴影 0 -2px 0 #3d4145,//上 0 2px 0 #5340e6, //下 2px 0 0 #f43530;//右 height: 200px; margin-bottom: 10%; } <p class="tesr"> </p>
The above is the entire content of this article. I hope it will be helpful to everyone's study. For more related content, please pay attention to the PHP Chinese website!
Related recommendations:
How to use CSS to clear floating methods
Creating a webpage dotted line with the border attribute in css
The above is the detailed content of Use css to achieve shadow effect. For more information, please follow other related articles on the PHP Chinese website!