how do they use the native mac color-picker on this page : http://beta.theexpressiveweb.com/#!/css3-gradients

StackOverflow https://stackoverflow.com/questions/19695394

  •  02-07-2022
  •  | 
  •  

문제

http://beta.theexpressiveweb.com/#!/css3-gradients

On mac, chrome or firefox, it uses native color-picker to change color. How ?

도움이 되었습니까?

해결책

It's just HTML5 input type called color:

<input type="color">

More HTML5 input types you can find at MDN.

See jsFiddle demo. Works only in modern browsers.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top