<style> .div { width: 300px; height: 40px; background-color: red; box-shadow: 10px 10px 10px green; margin: 30px; } .div1 { width: 300px; height: 40px; background-color: blue; box-shadow: 10px 0 0 green inset; margin: 30px; } .div2 { width: 300px; height: 40px; background-color: green; box-shadow: 0px 2px 0px red; margin: 30px; } </style> </head> <body> <div class="div"></div> <div class="div1"></div> <div class="div2"></div> </body> </html>
box-shadow边框阴影
于 2022-07-25 15:07:27 首次发布