我一直在尋找的CSS代碼相當長一段時間,並已多次嘗試得到這個頁面:http://appraisalline.com/chicagoappraisals/正確顯示在IE瀏覽器,但無濟於事。我試圖解決的CSS代碼是這樣的:在IE瀏覽器不能正常工作水平導航看起來FF和Chrome良好
nav {
padding: 0px 0px 3px 0px;
width: 100%;
height: 50px;
overflow: hidden;
}
nav ul {
background: url(../images/nav-li-bg.gif) right top no-repeat;
height: 50px;
overflow: hidden;
float: left;
}
nav ul li {
font-size: 13px;
line-height: 24px;
float: left;
background: url(../images/nav-li-bg.gif) 0 0 no-repeat;
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
margin-left: -2px;
}
nav ul li a {
color: #fff;
text-decoration: none;
display: inline-block;
cursor: pointer;
text-transform: uppercase;
position: relative;
font-weight: bold;
margin: 0 0px 0 0;
}
nav ul li a span {
background: none;
display: inline-block;
padding: 0px 6px 0 6px;
}
nav ul li a span span {
background: none;
padding: 13px 17px 13px 16px;
}
nav ul li a:hover, nav .active {
background:url(../images/nav-left.gif) left top no-repeat;
color:#fff;
}
nav ul li a:hover span, nav .active span {
background:url(../images/nav-right.gif) right top no-repeat;
}
nav ul li a:hover span span, nav .active span span {
background:url(../images/nav-tail.gif) 0 0 repeat-x;
}
nav .first {margin: 0;}
任何和所有的幫助,爲什麼這不是渲染讚賞。謝謝!
我在這裏的答案應該有所幫助:http://stackoverflow.com/questions/6200087/jquery-attr-in-ie7/6200579#6200579(它在這裏多說了同樣的話作爲回答,我會投票是否向上我有剩下的選票..) – thirtydot 2011-06-08 23:15:26