【问题标题】:Why my web page is not running with proper alignment only with IE?为什么我的网页不能仅与 IE 正确对齐运行?
【发布时间】:2012-11-08 11:55:13
【问题描述】:

我已经使用 twitter bootstrap 创建了一个网页,该网页适用于除 Internet Explorer 9 之外的所有浏览器。对于这个问题,我已经用谷歌搜索过,我得到了一条线索,可以通过按 F12 来使用 IE 的开发人员工具。在使用该开发人员工具时,我将文档模式从 quirks 更改为 IE 标准 9 和 8,这使我的输出格式与我要求的格式完全相同,或者我们可以说它给我的输出与其他浏览器给我的输出相同..

所以我的问题是:我需要在我的 phtml 页面中进行哪些更改?

我已经尝试过更改 Doctype,但它对我不起作用

【问题讨论】:

  • 试着把它放在 标签之上: ttp://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" rel="nofollow" target="_blank">w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  • 我玩过Doctype但没有任何效果

标签: internet-explorer cross-browser


【解决方案1】:

在你的页眉中试试这个

<!-- this meta tag is used to force IE9 to work with HTML5 and CSS3 -->
<meta http-equiv="X-UA-Compatible" content="IE=9" />

当然,&lt;!DOCTYPE html&gt;

【讨论】:

    猜你喜欢
    • 2011-10-07
    • 1970-01-01
    • 2020-07-25
    • 2017-01-31
    • 1970-01-01
    • 2016-09-11
    • 2018-10-09
    • 2016-05-30
    • 1970-01-01
    相关资源
    最近更新 更多