首选可定制的逐步增强的下拉菜单/菜单?
我正在查看 YUI 有什么, http://developer.yahoo.com/ yui/examples/button/btn_example07.html
有人可以推荐一个他们用来根据客户的请求逐步增强本机选择元素下拉列表的库/插件吗?我知道不可能在 IE 中设置下拉菜单的样式,所以我不想涉及这个或 Flash。
我仍然会在源代码中为非 JS 用户保留常规下拉列表,并提供由非表单控制元素构建的下拉列表副本。
I was looking at what YUI had, http://developer.yahoo.com/yui/examples/button/btn_example07.html
Can anyone recommend a library/plugin they used to progressively enhance native select element dropdowns at the request of a client? I know it's impossible to style a dropdown in IE, so it's either this or Flash which I don't want to get into.
I'll still leave the regular dropdown in the source for non-JS users and serve the dropdown replica built out of non-form control elements.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
假设你指的是与 YUI 不同的库,我喜欢 dojo 的 dijit.form.FilteringSelect。
Assuming you mean a different library than YUI, I like dojo's dijit.form.FilteringSelect.
事实证明,这并没有那么困难,与下拉菜单的逻辑几乎相同,只是有一点额外的切换位。
Turns out it wasn't all that difficult, pretty much the same logic as a dropdown menu except with a little extra for the toggling bit.