我正试图在图像中实现类似的框影。我尝试过不同的解决方案,但是阴影总是出现在整个盒子上,而不是只出现在中间。
<div id="login" class="animate form">
<div class="login-header"><h2>Sign In to the world of <span>"I want Ride!"</span></h2></div>
<form action="form.
我非常接近于为IE8获得一个内嵌框阴影,而不需要JavaScript。
这是一个截图:
由于Internet 5.5到8只支持Microsoft的“下拉阴影”和“阴影”,而不支持框影,所以我必须使用以下代码:
#box {
/* CSS for all browsers. Note if there is no background-color, the box will be transparent */
border: solid 1px #808080;
margin: 10px;
padding: 10px;
zoom: 1;
filter: