請參閱this jsFiddle示例。我已經在文本中使用的背景圖片將拿出來看在IE中,當你在長值類型:在IE 6和IE 7中推出的文本框背景圖片
解決方案(萬一的jsfiddle被刪除)
CSS
#txt_services_by_zip_code_search{
border: none;
float: left;
height: 22px;
width: 95px;
padding:0 5px;
background: transparent
}
#txt_services_by_zip_code_search_wrapper {
background: transparent url('http://i.imgur.com/quh2W.gif') no-repeat 0 -25px;
display: inline-block;
*display: inline;
zoom: 1
}
HTML
<div id="txt_services_by_zip_code_search_wrapper">
<input type="text" name="services_by_zip_code_search" id="txt_services_by_zip_code_search" class="txt_services_by_zip_code_search" />
</div>
你的問題是什麼? – BoltClock
當您輸入長整型值時,我在文本框中使用的背景圖像在IE中將視圖推出。如何解決該錯誤? – Jaspero