0
我要對齊文本'開始新搜索'與輸入框中的文本高度相同。此問題僅在IE7中發生。下面是對應的圖像,HTML和CSS它如何將簡單文本放置在與IE7文本框中文本高度相同的高度?
<span class="search_new_search_box"> Start new search
<input id="search_box_second" class="search_results_input" type="text" value="$searchTO.getSearchTerm()" onfocus="if (this.value=='Please enter a keyword') {this.value = '';}" /> </span>
<span style="float:left"><input type="image" src="images/bttn_search_result.png" value="submit" /></span>
這裏是CSS它
.search_new_search_box{
font:normal 12px/24px AntennaRegular, Arial, Helvetica, Sans-serif;
float:left;
padding-top:3px;
}
.search_results_input {
width:300px;
height:30px;
font:normal 12px/24px AntennaRegular, Arial, Helvetica, Sans-serif;
background-color:#eee;
border:solid 1px #ccc;
line-height:30px;
}
我試過了,它不起作用 – pushya 2012-02-21 19:47:38