当我使用 type=image of input name =searchsel_list 时,我得到的图像显示正确,但我没有得到想要在单击该搜索时显示的结果,所以我更改了它的 type=submit 所以我得到了结果但是现在图像没有显示
<div id="tabr"><form id="quick-search" action="csearch.php?epage=csearch" method="post" >
<p>
<label for="qsearch">Search:</label>
<input class="tbox" id="qsearch" type="text" name="tsearch" placeholder="Search Selected Candidate" title="Type name and hit ENTER" />
<input type="submit" class="btn" alt="Search" name="searchsel_list" title="Search" />
</p>
</form></div>
CSS
#tabr form#quick-search {
padding: 0; margin: 30px 0 0 30px;
width: 270px; height: 33px;
background: #fff url(../images/header-search.gif) no-repeat;
border: none;
}
#tabr form#quick-search p {
margin: 0; padding: 0;
border: none;
}
#tabr form#quick-search input {
border: none;
background: transparent;
color: #BABABA;
margin: 0; padding: 5px;
font-size: .9em;
float: left;
}
#tabr form#quick-search .tbox {
margin: 6px 0 0 5px;
width: 220px;
display: inline;
}
#tabr form#quick-search .btn{
width: 24px; height: 24px;
margin: 5px 0 0 0; padding: 0;
}
#tabr form#quick-search label {
display: none;
}
我试过了,但即使这样也行不通
<button type="submit" class="btn" alt="Search" name="searchsel_list" title="Search"><img src="images/header-search.gif" /></button>
我怎样才能再次显示图像,谢谢