div的宽和高和阴影偏移的位置有关系的哦~~~~
div的宽和高和阴影偏移的位置有关系的哦~~~~可以看下我发的截图和以下代码测试下
<!doctype html> <html> <head> <meta charset="utf-8"> <title>boxshadow</title> <style> .box{ width:104px; height:104px; overflow:hidden;} .boxshadow-outset{ width:100px; height:100px; box-shadow:4px 4px 6px #666; background:red; } </style> </head> <body> <h2>外阴影</h2> <div class="box"> <div class="boxshadow-outset"> </div> </div> </body> </html>