[英]Placeholder not working in Chrome and Safari but working in Firefox
[英]Placeholder not working in chrome
我正在使用剃刀視圖頁面,在日期時間字段中我想顯示占位符,它在Firefox中顯示但不顯示在chrome中顯示 - mm/dd/yyyy
。
她是我的代碼 -
@Html.EditorFor(model => model.Date, new { htmlAttributes = new { @class = "form-control form-inline", @placeholder = "Date must be today's or past date" } })
我該如何解決這個問題。
日期類型不支持占位符屬性。 此外,WebKit實現說它已修復。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.