XHTML / CSS:為什么Firefox搞砸了我的水平標簽菜單?

[英]XHTML/CSS: Why does Firefox mess up my horizontal tab menu?


Problem page: http://www.antisit.com

問題頁面:http://www.antisit.com

Stylesheet: http://www.antisit.com/styles.css

Any idea how to make this work in Firefox? (It appears as if the right tab image is being pushed below the link, as if there weren't enough room for it within the anchor element.

知道如何在Firefox中使用它嗎? (看起來好像正確的標簽圖像被推到鏈接下方,好像在錨元素中沒有足夠的空間。

Also, the reason that I'm using two tags is that I prefer using less image data to having neater code. If you have any suggestions for a better way, let me know.

另外,我使用兩個標簽的原因是我更喜歡使用較少的圖像數據來獲得更整潔的代碼。如果您對更好的方法有任何建議,請告訴我。

Thanks, John

1 个解决方案

#1


You can try this markup:

你可以嘗試這個標記:

<a href="http://www.antisit.com/articles">
  <span class="left"></span>
  <span class="right"></span>
  Articles
</a>

Seems to work fine in Firefox with firebug although I haven't tried anywhere else. Unfortunately, order shouldn't matter but it does sometimes. :(

似乎在Firefox中使用firebug可以正常工作,盡管我還沒有在其他任何地方嘗試過。不幸的是,訂單無關緊要,但有時確實如此。 :(


注意!

本站翻译的文章,版权归属于本站,未经许可禁止转摘,转摘请注明本文地址:https://www.itdaan.com/blog/2009/01/07/72f67ec026f2e68899591678ef8a1db9.html



 
粤ICP备14056181号  © 2014-2021 ITdaan.com