我有HTML这样的:CSS:裕IMG
<div id="userBar">
<a href="notifications.php" class="iconGlobe"></A>
<a href="cp.php" class="iconCP"></a>
<a href="cap.php" class="iconCAP"></a>
</div>
.iconGlobe是看起来像这样一个图标,同时与redst:
.iconGlobe{
background: url(../images/icons/globe_16x16.png) no-repeat;
width: 16px;
height: 16px;
border: none;
display:inline-block;
position:relative;
text-decoration:none;
}
我试着去之间给保证金锚链接,如下所示:
#userbar a{
margin-right: 8px;
}
但我不适用保证金。我试图单独这样做.iconGlobe有保证金的权利,而且工作得很好。我不希望单独应用它们。
我不认为你需要`position:relative;`on .iconGlobe。你在测试哪个浏览器?你有没有现场的例子? – Kyle 2011-01-14 09:56:40