为了在IE 8中对背景图像应用大小,我按照这个问题的接受答案How do I make background-size work in IE?
然而,放在该部门的锚点和按钮在IE 8中不起作用。有人可以推荐一个简单的解决方案来解决这个问题吗?
<!-- Here is my HTML !-->
<div id="masthead">
<div class="inner_masthead_inner_wrapper">
<h1>HEADLINE</h1>
<p>Sales copy</p>
<h2>Give it a try, it's free!</h2>
<button type="button" class="btn fbLoginBtn" onClick="FB.login();">Login with Facebook</button>
</div>
</div>
<!-- Here is my CSS !-->
#masthead{
background: url(../images/social-media-marketing-tool.jpg) no-repeat #000;
background-size: 100% 100%;
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(
src='images/social-media-marketing-tool.jpg',
sizingMethod='scale');
-ms-filter: 'progid:DXImageTransform.Microsoft.AlphaImageLoader(
src='images/social-media-marketing-tool.jpg',
sizingMethod='scale')';
}