html - 为 IE10 和 IE11 使用不同的样式表

标签 html css

除了 javascript,还有其他方法可以在 IE10 和 IE11 中为 Web 应用程序使用不同的样式表吗?

最佳答案

根据 MSDN :

Important As of Internet Explorer 10, conditional comments are no longer supported by standards mode. Use feature detection to provide effective fallback strategies for website features that aren't supported by the browser.

@yglodt 你无法将 10 和 11 区分为 10——放弃了支持。

查看回退策略,印象不深 - 您将测试功能可用性。

您可以使用任何语言(JavaScriptPHPPython 等)来检查代理并采取行动。不是最好的,但可以在绝望模式下工作。

关于html - 为 IE10 和 IE11 使用不同的样式表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21534631/

相关文章:

html - 为什么我的汉堡菜单在我第一次打开页面时关闭?

javascript - Highcharts 图表在 zoomType : 'x' area range zoom? 上变为空白

javascript - Bootstrap、jQuery 在模态中不起作用

html - 如何增加 Angular 5 中垫对话框的自动高度?

javascript - IE7 中省略了 Suckerfish 下拉菜单

javascript - 已安装实时服务器但无法在 VS 代码中运行

html - 是否会在同一行显示 div 是否有任何类?

html - CSS自定义属性如何级联?

jquery - jquery隐藏鼠标光标的方法

javascript - 我怎么知道通过 AngularJS 指令 Bootstrap 事件类更改