我有,其提交的輸入按鈕有一個背景圖像,並在輸入欄的左上角轉移的一種形式:提交輸入IE8無法點擊
這適用於所有的主流瀏覽器。我的問題是,它也需要在Windows XP(!)上的IE8中工作,而不是。當您懸停在輸入(放大鏡)上時,指針不會改變,並且該按鈕不可點擊。任何想法,我要錯了嗎?
HTML:
<form id="" action="" method="post">
<label for="search">Search</label>
<input type="text" id="search" name="search" value="" />
<input type="submit" name="searchsub" class="searchsub" value="" />
</form>
CSS:
#search {
width:222px;
height:36px;
padding-left:223px;
padding-right:10px;
float:left;
}
input.searchsub {
width:23px;
height:23px;
float:left;
background-image:url(../images/magnifier.jpg);
margin:8px 0 0 -32px;
border:0;
cursor:pointer;
}
輝煌,它的工作原理,謝謝!我只需要添加'input:focus {outline-width:0; }'在Chrome中刪除輪廓。再次感謝。 – GluePear