Internet Explorer 7中存在一个奇怪的问题,它显示的标题与顶部之间有许多距离。其他浏览器或更新版本的IE中不存在该问题。Internet Explorer 7中不需要的保证金问题
我该怎么做才能使它正确?
铬版本:
IE 7版本:
HTML
<div class="box">
<header class="module-title">
<h2 class="title">گزارش و مصاحبه</h2>
</header>
<section class="module-content">
<ul class="sidebar-news">
<li>
<div class="image-holder">
<img src="img.jpg" alt="Test item">
</div>
<h3><a class="moduleItemTitle" href="#">Copy of مصاحبه با معاون صدا درباره راديو كتاب</a></h3>
.
.
.
</li>
</ul>
</section>
</div>
CSS
.module-title h2 { margin-top: 0; font-size: 26px; line-height: 30px; }
.sidebar-news { list-style: none; margin: 0; }
.sidebar-news h3 { font-size: 20px; line-height: 26px; margin-top: 0; }
.sidebar-news .image-holder { width: 140px; float: right; margin-left: 10px; }
更新1:我固定它通过给*margin: -20px;
到.sidebar-news h3
,但我不喜欢我的解决方案!这是为什么发生?有什么增加了这个差距?
您是否[首先重置您的css](http://meyerweb.com/eric/tools/css/reset/)? – Seza 2013-05-13 17:32:41
是不是支持IE7的一个选项? – 2013-05-13 17:33:16
@Seza是的,我正在使用'Bootstrap'启用重置选项,并且我正在加载'Modernizr.js' – 2013-05-13 17:34:15