下面是代碼:如何讓Chrome遵守此規則?
<table style='margin-left: auto; margin-right: auto; text-align: right;'>
<tr>
<td style='vertical-align: top;'>Title:</td>
<td style='width: 400px;'><input type='text' style='border: 1px solid black; width: 100%;' />
</tr>
<tr>
<td style='vertical-align: top;'>Content:</td>
<td><textarea style='border: 1px solid black; width: 100%;' rows='7'></textarea></td>
</tr>
</table>
下面是它看起來像在Opera和Firefox(在Linux中):
http://files.quickmediasolutions.com/nuisance/opera.png http://files.quickmediasolutions.com/nuisance/firefox.png
但隨後在Chrome(也是Linux的):
http://files.quickmediasolutions.com/nuisance/chrome.png
正如你ç一看,第一個文本框不是正確的寬度:(
我該如何解決這個問題?
更新:here是一個演示該問題的實時頁面。
適合我。你能提供一個鏈接到現場網站? – 2010-05-12 01:11:26
只是一個猜測,但你錯過了'textarea'上的'cols'屬性。可能不是問題,但也許值得一試。 – tau 2010-05-12 01:32:50
@Fyo:對不起,延遲:http://files.quickmediasolutions.com/nuisance/test.html – 2010-05-12 02:11:37