2012-10-03 13 views
0

下面的代碼工作正常,處處除了從iPad在按鈕中的文本在兩行被打破:iPad的分解按鈕上的文字爲兩條獨立的線路

.sign_up { 
    background: url('../images/submit_button.png') no-repeat 0 0; 
    border: 0; 
    text-align: center; 
    color: white; 
    text-transform: uppercase; 
    font-size: 14px; 
    cursor: pointer; 
    margin-left: 12px; 
    width: 110px; 
    height: 34px; 
} 

的sign_up類已經給按鈕元素其中包含「添加其他人」作爲文本。

但是,在iPad上,「其他」最終在第二行。

+1

現在用於白色空間:NOWRAP;在你的sign_up類中 –

回答

1

重置與iPad的按鈕默認樣式 -

button, input[type="button"], input[type="reset"], input[type="submit"] { -webkit-appearance: button; cursor: pointer; }