问题
Can anyone recommend a free color picker web control for asp.net webforms ?
Thanks
回答1:
It's not supported by every browser yet, but you could use the HTML 5 color input:
<input type="color" name="favcolor" value="#ff0000">
回答2:
Use any number of jQuery plugins to populate a textbox. Here's two:
- Farbtastic
- ColorPicker
回答3:
This one is nice: http://www.karpach.com/ColorPickerDemo.aspx
回答4:
@Html.EditorFor(model => model.Color, new { htmlAttributes = new { @class = "form-control", required = "required", type = "color", style = "width:40px;padding:0;" } })
来源:https://stackoverflow.com/questions/452325/free-asp-net-color-picker-control