2009-01-16 41 views

回答

7

使用任意數量的jQuery插件來填充文本框。這裏有二:

+1

1+,對於具有提到Farbtastic – Cleiton 2009-08-30 01:59:33

7

這不是supported由每個瀏覽器,但你可以使用HTML 5的色彩輸入:

<input type="color" name="favcolor" value="#ff0000">

0
@Html.EditorFor(model => model.Color, new { htmlAttributes = new { @class = "form-control", required = "required", type = "color", style = "width:40px;padding:0;" } })