如何让Bootstrap4兼容IE9和IE10
How to make Bootstrap 4 compatible with IE9 and IE10
哪些 polyfill 库可用于使 Bootstrap 4(或 Bootstrap 4 的大部分)与 IE9 兼容?
我遇到过这些库:
谢谢。
查看他们的 website 他们建议使用 Bootstrap 3 来支持 IE8-9。
If you require IE8-9 support, use Bootstrap 3. It’s the most stable version of our code and is still supported by our team for critical bugfixes and documentation changes. However, no new features will be added to it.
IE9 和 IE10 难以支持 bootstrap 4 的原因是它使用了现代 css ( flexbox ) 和 html5 元素。他们不在 css 中提供后备方案,因此您必须手动添加这些后备方案。
Please be aware that some CSS3 properties and HTML5 elements are not fully supported in IE10, or require prefixed properties for full functionality
如何为 IE9 和 IE10 修复 Bootstrap4:
- Autoprefixer 允许您根据浏览器支持创建回退。然而,这并不能解决您所有的问题。
- HTML 5 shiv 一个 HTML 5 遗留浏览器的回退
- 任何使用 flexbox 的地方都需要基于浮动的后备
您在上面链接到开源项目Bootstrap IE8这可能是您的最佳选择,因为它是为解决您的问题而构建的。
哪些 polyfill 库可用于使 Bootstrap 4(或 Bootstrap 4 的大部分)与 IE9 兼容?
我遇到过这些库:
谢谢。
查看他们的 website 他们建议使用 Bootstrap 3 来支持 IE8-9。
If you require IE8-9 support, use Bootstrap 3. It’s the most stable version of our code and is still supported by our team for critical bugfixes and documentation changes. However, no new features will be added to it.
IE9 和 IE10 难以支持 bootstrap 4 的原因是它使用了现代 css ( flexbox ) 和 html5 元素。他们不在 css 中提供后备方案,因此您必须手动添加这些后备方案。
Please be aware that some CSS3 properties and HTML5 elements are not fully supported in IE10, or require prefixed properties for full functionality
如何为 IE9 和 IE10 修复 Bootstrap4:
- Autoprefixer 允许您根据浏览器支持创建回退。然而,这并不能解决您所有的问题。
- HTML 5 shiv 一个 HTML 5 遗留浏览器的回退
- 任何使用 flexbox 的地方都需要基于浮动的后备
您在上面链接到开源项目Bootstrap IE8这可能是您的最佳选择,因为它是为解决您的问题而构建的。