css:
.test{background-image:url(../images/banner1.jpg); background-repeat:no-repeat; background-position:center top;height:100vh;background-size:cover;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=’images/banner1.jpg’,sizingMethod=’scale’)}
html(IE8中height100%无效解决方案):
< pre class=”html” name=”code”>html,body,.test{height:100%;}< /pre>