Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

colors in html5 #3

Open
xujihui1985 opened this issue May 15, 2014 · 0 comments
Open

colors in html5 #3

xujihui1985 opened this issue May 15, 2014 · 0 comments
Milestone

Comments

@xujihui1985
Copy link
Owner

Restricting Color Well Selection

By default the “well” that appears offers the user the entire color gamut to choose from. With the same principle as the range input, the user’s choices can be directed to just a few colors by using a with appropriate values:

<input type="color" value="#333333" list="colors">
<datalist id=colors>
  <option>#ffffff</option>
  <option>#ff0000</option>
  <option>#ff7700</option>
</datalist>
@xujihui1985 xujihui1985 added this to the xxxxx milestone Jul 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant