我的导航菜单在IE 6,7或8中不起作用。我很好,它不能在IE 6中工作,但不幸的是它需要在IE 7中工作和8.我正在使用Ubuntu,所以我一直在使用http://netrenderer.com进行测试。导航div不是正确的,li元素不是内联显示的。为什么是这样? Here is the website。我的导航菜单在IE上不起作用<9
nav ul {
margin: 0;
padding: 0;
}
nav a {
height: 20px;
width: 27%;
margin: 0 1.7%;
margin-bottom: 0;
padding: 25px 2%;
text-align: center;
text-decoration: none;
font-weight: thin;
color: #555;
float: left;
display: inline-block;
}
nav li:first-child a {
margin-left: 0;
}
nav li:last-child a {
margin-right: 0;
}
/* ========================
INTERMEDIATE: IE Fixes
======================== */
nav ul li {
display: inline;
}
nav {
display: block;
float: right;
width: 38%;
clear: both;
}
请张贴一些代码。 – Doorknob
谢谢 - 我现在有。 – Sam
问题到底是什么?您正在使用旧版浏览器不支持的HTML5代码。 – Kaloyan