我在我的.cshtml下面的代碼:MVC助手文本區 - 佔位符不顯示
@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>
正如我所說的,代碼正在工作,它顯示你的佔位符。你確定這不是你的CSS的問題嗎? – 2013-02-22 09:58:37
Dono whatz造成的。我試圖在沒有Css的空白頁面也仍然不會來..奇怪 – user2067567 2013-02-22 10:02:09
你目前使用什麼瀏覽器? – 2013-02-22 10:03:04