9

任何人都可以为 asp.net webforms 推荐一个免费的颜色选择器 web 控件吗?

谢谢

4

4 回答 4

15

并非所有浏览器都支持它,但您可以使用 HTML 5 颜色输入:

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

于 2015-05-28T01:21:51.597 回答
8

使用任意数量的 jQuery 插件来填充文本框。这里有两个:

于 2009-01-16T23:09:45.593 回答
3

这个不错:http ://www.karpach.com/ColorPickerDemo.aspx

于 2009-01-16T23:10:33.453 回答
1
@Html.EditorFor(model => model.Color, new { htmlAttributes = new { @class = "form-control", required = "required", type = "color", style = "width:40px;padding:0;" } })
于 2016-07-16T22:10:42.657 回答