【发布时间】:2014-09-04 12:49:05
【问题描述】:
我有这部分语法
<!DOCTYPE html>
<!--[if IE]> <html lang="en" class="ie"> <![endif]-->
<!--[if IE 8 ]> <html lang="en" class="ie8"> <![endif]-->
<!--[if IE 9 ]> <html lang="en" class="ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->
<html lang="en">
<!--<![endif]-->
它适用于IE 8 和IE 9,但不适用于IE。有什么建议吗?
我有一些css 想在浏览器一般为IE 时应用。
示例:
.ie #nav ul#top-nav li.top-nav-item a.top-nav-link {
width: 167px;
}
编辑
我有一个TypeKit,目前在 IE 中不工作。我想做一些css 调整,以便我的页面在IE 上看起来很好,直到我找到TypeKit 问题的解决方案
【问题讨论】:
-
IE 10+ 不支持条件 cmets...
-
可能是因为
IE 8或IE 9实际上会取代IE? -
为什么需要这样做?
-
@thirtydot 我有一些 fontkit 目前无法在 IE 上运行,所以我需要修复一些字体间距和其他东西,直到找到 fontkit 的解决方案
标签: html css internet-explorer