javascript - Bootstrap 和 IE 8 = 灾难

标签 javascript css windows internet-explorer-8

我一直在研究如何使 Bootstrap 与 IE 8 一起工作,但它仍然看起来像这样:

Internet Explorer 8 showing my bootstrap form

到目前为止我做了什么:

  1. 插入 <head>

    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    
  2. 插入 respond.js

-> 但还是一样。问题是子域吗?还是我的 IE 8 太旧了?有趣的是我试图更新它,但无法更新它。我是 Mac 用户,也许我需要一些额外的学位...微软只给我 IE 10/11。

表单的 URL:inday.idext.co.th 如果您想查看 PHP 文件:pls click

非常感谢,我真的迷失了这个浏览器。 :-(

最佳答案

看起来您使用的是 Bootstrap 版本 4.0.0-alpha。第 36 行:

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.2/css/bootstrap.min.css" integrity="sha384-y3tfxAZXuh4HwSYylfB+J125MxIs6mR5FOHamPBG064zB+AFeWH94NdvaCBm8qnd" crossorigin="anonymous">

来自 Bootstrap v4 文档:Supporting Internet Explorer 8

As of v4, Bootstrap no longer supports IE8. If you require IE8 support, we recommend you use Bootstrap 3. It’s still supported by our team for bugfixes and documentation changes, but no new features will be added to it.

Alternatively, you may add some third party JavaScript to backfill support for IE8 to Bootstrap 4. You’ll need the following:

No support will be provided for this, though you may find some help from the community in our Slack channel.

因此,采纳他们的建议,要么按照上述选项获得可行的解决方案,要么选择使用当前稳定版本的版本 3。除了这些解决方案之外,我认为您需要额外雇用具有所需技能的人员来帮助构建您的网站,因为使用 v4 的 alpha 修复产品上的所有内容超出了本网站的范围。

关于javascript - Bootstrap 和 IE 8 = 灾难,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38472054/

相关文章:

javascript - 无法使用 JavaScript 和 Angular 删除空对象属性

javascript - 如何选择id包含|的元素使用 jquery id 选择器

html - 将 div 与文本垂直对齐在同一行

python - Windows API "CreateWindowEx"能否在 Python (3.6.8) 64 位使用的 DLL 中工作?

windows - 用读取文本文件的for循环替换多行批处理文件

Android 不被识别为内部或外部命令 - 路径变量

javascript - 在对象的嵌套数组中搜索值 angular2

javascript - 在 openlayers 标记中使用图标时如何等待 css

css - 父子 div 的 3d 变换

html - 让悬停背景颜色代替整个 block 的问题