这是示例代码:
<table>
<tr>
<td>
Distrubed td element number 1
</td>
<td>
Distrubed td element number 2
</td>
<td>
Distrubed td element number 3
</td>
</tr>
<tr>
<td colspan="3"> // sorry forgot to type
<form method="post">
<textarea>The one who causing disturbance</textarea>
<button>Sample</button>
</form>
</td>
</tr>
</table>
问题是,每当我调整 textarea 元素
的大小时,上述 td
元素也会进行调整。尽管我的代码还没有 css
。我只想知道这是什么原因。错误或编码本身。谢谢!
最佳答案
最好为文本区域指定 cols
。这将解决您的问题。
例如;
<textarea cols="20">The one who causing disturbance</textarea>
关于html - 我的文本区域干扰了表格中的其他 td 元素,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37657077/