我有一个包含 6 个项目的菜单栏:
当我放大/缩小时,布局会发生变化:
为什么会发生这种情况?
CSS:
.menubar {
float:left;
width:920px;
background:url(../images/nav-back.png) top left repeat-x;
height:52px;
padding:9px 10px 8px 10px;
margin-bottom:32px;
}
.menubar ul {
float:left;
background:url(../images/nav-bg.gif) top left repeat-x;
width:100%;
display: block;
}
.menubar li { float:left; background:url(../images/depth.gif) top right no-repeat; }
.menubar li.last { background:none; }
.menubar li.first a { padding:16px 42px 16px 43px; }
.menubar li.last a { padding: 16px 43px 16px 44px; }
.menubar li a { padding:16px 18px; display: block; }