2011-08-25 52 views
3

我有一個文件,其中包含以下css/html,出於某種原因鏈接工作的唯一時間是如果我將顏色應用於A標記的背景。我使用這個鏈接作爲覆蓋來觸發JavaScript中的其他動畫。這讓我很難過,即使邊框是可點擊的,但是除非背景被應用,否則不會在裏面。Internet Explorer 7中css中的鏈接和背景奇怪的問題

<a id="domo-action" href="#wrapup-video" class="secret yum" data-yummy="9">click for domo</a> 

a#domo-action { 
    display: block; 
    height: 180px; 
    left: 0; 
    position: absolute; 
    text-indent: -9999px; 
    top: 20px; 
    width: 188px; 
    z-index: 999; 
    cursor: pointer; 
    border: 1px solid #999; 
    background: transparent; 
} 

回答

1

如果我沒記錯,這種情況的解決方法是應用透明blank.gif作爲background-image

+0

謝謝@thirtydot這個伎倆。 – jeffreynolte