我的 .cshtml 中有以下代码:
@Html.TextArea("txtComments", new { style = "width: 450px;", placeholder = "Enter Comments here" })
但是占位符根本不显示。我错过了什么吗?
来源:
<textarea cols="20" id="txtComments" name="txtComments" placeholder="Enter Comments here" rows="2" style="width: 450px;">
</textarea>