娜娜爱 发表于 2016-10-14 03:06:26
您需要 登录 才可以下载或查看，没有帐号？立即注册
Recently enough, a project named You Might Not Need JShas seen the day. I have mixed opinions about it, and rather than writing a series of context-less tweets, I thought the sensible thing to do would be to write a couple of lines here.
Needless to say, this is obviously not meant as an offense to the project’s author, especially since I believe they (mostly) did a great job. More on that later.
A word about the inspiration
Know your browser
- <label for="color-picker">Select a color</label>
- <input type="color" id="color-picker" />
A word on accessibility
A dialog element is not going to be accessible with CSS only. The aria-hiddenattribute needs to be toggled, the focus needs to be trapped, the escape key needs to close the dialog, and I could go on.
With that said, happy coding. :sparkling_heart:
上一篇：VMware Horizon 7 Blast Extreme Primer—Everything an Admin Needs to Know
下一篇：Ubuntu 16.10 Yakkety Yak Launches Officially with Linux Kernel 4.8, Download Now