<分区>
我知道 IE7 不支持 background-size cover
。
我在网上搜索了一些解决方案,但我唯一得到的是我应该放一个 img
和 width: 100%
和 height :100%
并将其作为背景。
这是唯一的解决方案吗?我见过一些使用 -ms-filter
的解决方案,但没有用。有人有其他解决方案吗?
1 件特别的事:
我有超过 1 个 div 至极具有此 background-size
封面属性。
在 Firefox 中一切正常(多么令人惊讶)。
Edit1:我的代码如下所示:
<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>