我的水平菜单有这个 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/