我想在CSS(具有放大鏡的搜索欄)中設置背景圖像的輸入html元素上使用jquery ui「highlight」效果。然而,在「高光」動畫中,背景圖像暫時消失,然後在高光動畫結束後出現。我希望圖像在整個動畫中保持不變。有任何想法嗎?如何在不暫時隱藏背景圖像的情況下使用「突出顯示」jquery效果?
HTML:
<input class="searchInput" id='searchInputWithMap' type="text" tabindex="100" name="searchStructures" />
CSS:
.searchInput {
font-family:Trebuchet MS,Helvetica,sans-serif;
background:transparent url(/images/search4.png) no-repeat scroll 8px 6px;
height:22px;
line-height:28px;
padding-left:32px;
padding-right:3px;
padding-top:5px;
padding-bottom:5px;
margin:5px 0;
border:1px solid #999999;
font-size:130%;
height: 32px;
width: 400px;
vertical-align:center;
color:#BBBBBB;
}
很棒的傢伙。謝謝。 – CodingWithoutComments
嗯,我無法得到這個工作 –