我想创建一个如下图所示的 div
这个 div 我做得很好,它会在所有浏览器中呈现,但问题是当我尝试在 IE7 上呈现时,它不能正常工作。
下图显示了我的问题:
现在您可以看到See More
按钮在 IE7 中被剪裁,当我移除阴影时,它会呈现得非常好,但我需要
下面 div 的阴影是我的 CSS 代码:
<style type="text/css">
#ShadowSection
{
float: right;
width: 250px;
display: inline-block;
background-color: green;
margin-top: 30px;
position: relative;
max-height: 420px;
}
.ShadowSection-Heading
{
font-family: Caecilia LT Std;
font-size: 24px;
color: white;
font-weight:bolder;
}
#btnSeeMoreContainer
{
width: 100%;
height: 40px;
position: absolute;
z-index: 250;
top: 320px;
right: 0px;
text-align: center;
}
#btnSeeMoreStockProd
{
background-position: center;
width: 127px;
height: 40px;
text-align: center;
display: block;
text-decoration: none;
background-color: Red;
background-position: center center;
}
.btnSeeMoreText
{
font-family: TradeGothic;
font-style: oblique;
text-transform: uppercase;
color: #ffffff;
font-size: 15px;
height: 40px;
line-height: 40px;
}
.shadow
{
-moz-box-shadow: 3px 3px 4px rgba(0,0,0,0.4);
-webkit-box-shadow: 3px 3px 4px rgba(0,0,0,0.4);
box-shadow: 3px 3px 4px rgba(0,0,0,0.4); /* For IE 8 */
-ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color=rgba(0,0,0,0.4))"; /* For IE 5.5 - 7 */
filter: progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color=rgba(0,0,0,0.4));
}
</style>
下面是我的 HTML 代码:
<body style="text-align: center;">
<div id="ShadowSection" class="shadow">
<div style="margin: 10px 20px 30px 20px; min-height: 300px; word-wrap: break-word;
word-break: break-all;">
<p>
<span class="ShadowSection-Heading" title="Demo1">Demo1</span>
<br />
<br />
<br />
<span class="ShadowSection-Heading" title="Demo2">Demo2</span>
<br />
<br />
<br />
<span class="ShadowSection-Heading" title="Demo3">Demo3</span>
<br />
<br />
<br />
<span class="ShadowSection-Heading" title="Demo4">Demo4</span>
<br />
</p>
</div>
<table id="btnSeeMoreContainer" cellpadding="0" cellspacing="0">
<tr>
<td align="center">
<a href="#" id="btnSeeMoreStockProd" title="See More"><span class="btnSeeMoreText">
See More</span> </a>
</td>
</tr>
</table>
</body>