禁止textarea拉伸的方法是::
设置这个 style="resize:none" 属性
例子:
<textarea
id="productRemark"
th:inline="text"
th:text="${orderInfo?.dealErrorOrder?.productRemark}" style="width:450px;resize:none;">
</textarea>
原来的textarea的结果:
设置style=''resize:none;"后的结果是:
例子:
<textarea
id="productRemark"
th:inline="text"
th:text="${orderInfo?.dealErrorOrder?.productRemark}" style="width:450px;resize:none;">
</textarea>
原来的textarea的结果:
设置style=''resize:none;"后的结果是: