2011-07-25 38 views
0

這可能是一個簡單的修復方法,但我無法找到如何將我的文本在PC上的firefox中垂直對齊。垂直對齊Firefox中輸入內的文本 - 僅限於Windows

我使用該文本我一直使用到中心:

input.input_search_bg { 
    background: url("../images/input_search.png") no-repeat scroll 0 0 transparent; 
    border: 0 none; 
    color: #145D94; 
    float: left; 
    font-size: 13px; 
    height: 26px; 
    line-height: 26px; 
    margin: 0 7px 0 0; 
    padding: 0 8px 0 7px; 
    width: 266px; 
} 

我行高度定心它,在Mac上它看起來很棒。但是當我在PC上測試FF 3.0時,它並不一致。有關如何解決這個問題的任何想法?

HTML該節:

  <div class="top_search"> 
       <form> 
        <div class="search_box"> 
         <input type="text" value="Search" class="tog input_search_bg" /> 
        </div> 
        <input type="submit" class="search_submit_btn" /> 
       </form> 
      </div> 
+0

請包括HTML代碼。 – Gaurav

+0

在我的問題中更新了HTML – Coughlin

+0

你想如何對齊? – knut

回答

0

給填充底,

input.input_search_bg { 
    background: url("../images/input_search.png") no-repeat scroll 0 0 transparent; 
    border: 0 none; 
    color: #145D94; 
    float: left; 
    font-size: 13px; 
    height: 26px; 
    line-height: 26px; 
    margin: 0 7px 0 0; 
    padding: 0 8px 4px 7px; 
    width: 266px; 
}