0
我有連接到連接帶班selectedlink
的圖片展示了BG的形象,但我定位它,它就會消失外鏈接的視覺參數。這就像href
是一個圖像的窗口。
下面的代碼:
CSS:
div#intnavIcons a.selectedlink {
color: #900404;
font-size:11px;
font-weight:bold;
padding:#FFF;
text-decoration:underline;
background: url("/images/nav/bg-nav-current.png") no-repeat scroll center bottom transparent;
}
HTML:
<div id="intnavIcons">
<a class="selectedlink">This is selected</a>
<a>This is not selected</a>
<a>This is not selected</a>
<a>This is not selected</a>
</div>
任何人都可以看到,如果我失去了我的風格的東西來保持圖像的在href之上?
對於移動它越往下,我只是加入background-position: 0px 10px;
嗯,不知道我是如何錯過'padding:#FFF',多麼尷尬。 嗯,你說得對,'padding-bottom'工作。 – coffeemonitor