我有這個CSS代碼爲我horiontal菜單:化妝的CSS菜單浮動權
.nav-wrap {
float:right;
}
/* Clearfix */
.group:after { visibility: hidden; display: block; content: ""; clear: both; height: 0; }
*:first-child+html .group { zoom: 1; } /* IE7 */
/* Example One */
#example-one {
margin: 0 auto;
list-style: none;
position: relative;
width: 960px;
}
#example-one li {
display: inline-block;
}
#example-one a {
color: #ffffff;
font-size: 14px;
float: left;
padding: 6px 10px 4px 10px;
text-decoration: none;
text-transform: uppercase;
}
#example-one a:hover {
color: #000000;
}
#magic-line {
position: absolute;
bottom: -2px;
left: 0;
width: 100px;
height: 4px;
background: #000000;
}
.current_page_item a {
color: #000000 !important;
}
.ie6 #example-one li, .ie7 #example-one li {
display: inline;
}
.ie6 #magic-line {
bottom: -3px;
}
我怎樣才能使菜單浮動在頁面右側的頭部DIV(寬960像素)和一個標誌,內浮動離開旁邊的菜單
這裏是我有:http://jsfiddle.net/Mqs22/1/
和這裏是我曾嘗試:http://jsfiddle.net/ccZFs/
多數民衆贊成它,但鏈接現在是錯誤的方式。還有一條線,當你將鼠標懸停在它們上方時,它會滑入鏈接下(我無法在小提琴中工作) - (這裏是鏈接http://css-tricks.com/examples/MagicLine/ ... top例如),有一個完整地顯示在左邊,然後它在右邊的菜單是 – charlie
確實有意義嗎? – charlie
@charlie如果你需要更多的幫助,那麼請讓我知道。 –