<!DOCTYPE html> <html> <head> <title>img父元素实现图片内阴影</title> <style> .demo1{ width:300px; height:300px; box-shadow:0 0 30px blue inset; -webkit-box-shadow:0 0 30px blue inset; -moz-box-shadow:0 0 30px blue inset; -o-box-shadow:0 0 30px blue inset; } </style> </head> <body> <h3>给div元素添加内阴影效果</h3> <div class="demo1"></div> </body> </html>
给图片添加内阴影
最新推荐文章于 2022-09-30 18:08:07 发布