相关疑难解决方法(0)

html5boilerplate IE条件不起作用

好的,这是我第一次使用html5boilerplate,但无法从我的css文件中获取IE样式.

我在标题中有这个(根据页面设置)

<!doctype html>
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]>    <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]>    <html class="no-js lt-ie9" lang="en"> <![endif]-->
<!-- Consider adding a manifest.appcache: h5bp.com/d/Offline -->
    <!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
Run Code Online (Sandbox Code Playgroud)

在我的样式表中我有

#container { float:right; margin-top: 0px; }

.ie6 #container { margin-top: 5px; }

.ie7 #container { margin-top: 10px; }

.ie8 #container { margin-top: 15px; }
Run Code Online (Sandbox Code Playgroud)

它不起作用.这真的很简单,我错过了什么.

您的建议表示赞赏.

css internet-explorer html5boilerplate

1
推荐指数
1
解决办法
8699
查看次数

标签 统计

css ×1

html5boilerplate ×1

internet-explorer ×1