Css border style to set the shadow

<style>

width:300px;
 height:200px;
background-color:blue;
box-shadow:4px 5px 6px 7px rgba(0,0,0,.5) 
 }

</style>

<body>
    <div class="one"></div>
</body>
 
box-shadow

Its four parameters respectively represent: offset x-axis, y-axis offset, the radius of blur, shadow color

Guess you like

Origin www.cnblogs.com/chengdu123/p/11523034.html