我对仅在 IE 7 或更低版本中合并到列表元素中的一组按钮有疑问。所以所有按钮都出现Title 2
在第二个 li 元素中。请参阅下面的 html 和 css
<ul class="tabs">
<li><a href="#tab1">Title 1</a></li>
<li><a href="#tab2">Title 2</a></li>
<span class="button-span">
<button id="print" title="Print">
<img alt="Print" src="images/ico-print.png" border="0"/>
</button>
<button id="save" title="Save">
<img alt="Save" src="images/word.gif"/>
</button>
</span>
</ul>
CSS
ul.tabs li {
background: url('../images/gradient-black.png') repeat-x top left #262626;
border-top: 1px solid #444;
border-left: 1px solid #535250;
border-right: 1px solid #535250;
-webkit-border-top-left-radius: 6px;
-moz-border-top-left-radius: 6px;
border-top-left-radius: 6px;
-webkit-border-top-right-radius: 6px;
-moz-border-top-right-radius: 6px;
border-top-right-radius: 6px;
cursor: pointer;
float: left;
margin: 0 5px 0 0;
padding: 6px 20px;
overflow: hidden;
text-align: center;
width: 200px;
}
span.button-span {
margin-right: 35px;
float: right;
clear: both;
}