2
下高度當我把一個文本在表格單元格...textarea的表格單元格內不調整到細胞的Firefox
<table style="height:200px">
<tr>
<td>Some<br>nifty<br>text<br>filler</td>
<td style="padding:0px">
<div style="height:100% !important">
<textarea style="resize:none; height:100% !important; width:100% !important" data-ng-model="modelLogin.inpMtext">
</div>
</td>
</tr>
</table>
...我格外小心,確保兩個textarea的和包含div具有100%的重要高度...... textarea確實覆蓋了Chrome下的所有單元格的高度,但不包含在Firefox下。
任何想法爲什麼和/或如何解決Firefox下的情況?
檢查HTTPS! //stackoverflow.com/a/10943721/3063226,使用box-sizing:border-box;爲textarea可能是你在找什麼。 – Heitor