Home > Web Front-end > CSS Tutorial > Setting and canceling css shadow

Setting and canceling css shadow

王林
Release: 2021-02-24 10:38:43
forward
2610 people have browsed it

Setting and canceling css shadow

I have been using the mui layout style before, but this will cause a problem, shadow.

So how do we cancel the shadow?

Setting and canceling css shadow

Set shadow

		/*  长 宽 模糊度 颜色*/
box-shadow: 0 1px 6px #ccc;
Copy after login

If you cancel, just set it to 0. It is not recommended to delete it directly in mui.css. If you change it in mui All styles will change

Cancel the shadow

		/*  长 宽 模糊度 颜色*/
box-shadow: 0 0px 0px #ccc;
Copy after login

After setting, there will be no shadow

Setting and canceling css shadow

Here are some introductions to box-shadow

			/*长度 宽度 模糊度  阴影大小   颜色*/
 box-shadow:    0px -10px 0px 0px #ff0000,   /*上边阴影  红色*/

  			    -10px 0px 0px 0px #3bee17,   /*左边阴影  绿色*/

                10px 0px 0px 0px #2279ee,    /*右边阴影  蓝色*/

                0px 10px 0px 0px #eede15;    /*下边阴影  黄色*/
Copy after login

Related recommendations: CSS tutorial

The above is the detailed content of Setting and canceling css shadow. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:csdn.net
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