我知道IE7不支持background-size cover
。
我在网上搜索了一些解决方案,但我唯一得到的是应该放一个width: 100%
和height:100%
的img
并将其作为背景。
这是唯一的解决方案吗?我看到了一些关于-ms-filter
的解决方案,但没有起作用。有人有其他的解决方案吗?
1个特殊的事情:
我有多个具有此background-size
覆盖属性的div。
在Firefox中一切都正常(真出乎意料)。
编辑1:我的代码如下:
<div class="section" id="section1">here should be the first picture as the background!!</div>
<div class="section" id="section2">here should be the second picture as the background!!</div>
<div class="section" id="section3">here should be the third picture as the background!!</div>