Free asp.net color picker control

好久不见. 提交于 2019-12-22 04:38:22

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!