在我的表:文本顏色在文本框是灰色的IE9但不是在Mozilla
<table class ="test">
<tr class="bill">
<td class="total-title">Totals</td>
<td>
<input class="Test1" type="text" readonly="readonly" disabled="disabled"/>
</td>
<td>
<input class="Test2" type="text" readonly="readonly" disabled="disabled"/>
</td>
<td>
<input class="Test3" type="text" readonly="readonly" disabled="disabled"/>
</td>
</tr>
的文本中的文本的顏色是灰色的IE9,但在Mozilla。 只有TextBox值應該是什麼?我知道我所有的'td'課是不同的,但這就是要求。
我這樣做:
.Tax #MyPage TABLE.test INPUT[disabled='disabled']
{
color: #CCC;
}
不工作:(
你想要什麼顏色?如果您沒有聲明自己的樣式,或者使用CSS重置對它們進行基線,則它們將是瀏覽器默認用於禁用的只讀文本輸入的內容。正如你所看到的,在不同的瀏覽器中可以有所不同。 – Brent
還是你問如何爲輸入值聲明'顏色'? – Brent
這只是因爲IE很爛。 –