简体   繁体   English

带有bootstrap 3和IE8的response.js

[英]respond.js with bootstrap 3 and IE8

In Inernet Explorer 8 Can someone please tell me why the column width on the services page are shorter than what they should be? Inernet Explorer 8中,有人可以告诉我为什么服务页面上的列宽短于应有的长度吗? They should be similiar to the yellow highlighted area below: 它们应类似于下面的黄色突出显示区域:

网站上的服务页面

I tried viewing it in Browser Stack and using Emulation Mode from within IE11. 我尝试在浏览器堆栈中查看它,并在IE11中使用仿真模式。 I am using respond.js like described in Bootstrap docs . 我使用respond.js就像在描述引导文档

What am I doing wrong? 我究竟做错了什么?

Thanks 谢谢

There are 2 problems in IE8: IE8中有2个问题:

First problem: 第一个问题:

<dt>
    <i class="icon-data-consolidation"></i>
</dt>

This <dt> tag has a diferent size on IE8 than any other browser. 与其他任何浏览器相比,此<dt>标记在IE8上的大小不同。 (Firefox, Chrome, Safari, etc). (Firefox,Chrome,Safari等)。 For example in Mozilla it has width = 45px ; height = 45px 例如在Mozilla中它的width = 45px ; height = 45px width = 45px ; height = 45px and in IE8 it has width = 160px ; height = 45px; width = 45px ; height = 45px ,在IE8中它的width = 160px ; height = 45px; width = 45px ; height = 45px width = 160px ; height = 45px; width = 160px ; height = 45px; . So because of this 160px width of the <dt> tags that you have in the page, your design crashes. 因此,由于页面中<dt>标签的宽度为160px,因此设计会崩溃。

Solution for first problem: 第一个问题的解决方案:

Add this into your css code: 将此添加到您的CSS代码中:

.dl-horizontal dt {
    width: 45px !important;
}

Second problem: 第二个问题:

<dd>
    <h5>Data Consolidation</h5>
    <p>Data from disparate systems ...</p>
</dd>

This <dd> tag has a margin-left = 45px in Firefox, but in IE8 it's set to 180px. 在Firefox中,此<dd>标签的margin-left = 45px,但在IE8中将其设置为180px。

Solution for the second problem: 第二个问题的解决方案:

Add this into your css code: 将此添加到您的CSS代码中:

.dl-horizontal dd {
    margin-left: 45px !important;
}

I've tested this and it works, hope this helps. 我已经对此进行了测试,并且可以正常工作,希望对您有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM