表单样式,jqTransform 替代品?
我使用 jqTransform,你可以通过查看我最近的问题看出,它给我带来了困难。
我在网上看到了一些替代方案,但我想知道是否有真正值得的东西?有时我无法判断我找到的脚本(或技术)是两个月前的还是两年前的。
我对皮肤输入感兴趣,但更重要的是选择(下拉菜单)。
编辑:这不是 jqTransform 不能做的事情,而是它不允许我做的事情。我需要重新设计我的选择,无论是使用 jquery 还是 CSS 技术或其他技术,而不丢失选择的功能。使用 jqTransform 时,当表单上有多个选择时,我在获取选择的选定值时遇到问题,因为它们在重新换肤后没有 id(ofc,您可以解决这个问题,但到目前为止这只是一个头痛)。
I use jqTransform and as you can tell by having a look at my recent questions, it's giving me a hard time.
I've seen a few alternatives in the web but I wonder if there's something really worth it? Sometimes I can't tell if the script (or technique) that I found is two months old or two years.
I'm interested in skinning inputs but more importantly, selects (dropdowns).
EDIT: It's not what jqTransform can't do, it's what it won't let me do. I need to reskin my selects, be it with jquery or a css technique or something else without losing the functionality of the selects. With jqTransform I have issues getting the selected values of the selects when you have more than one on the form because they don't have id's after they get reskinned (ofc you can work around that but so far it's only been a headache).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您只是在寻找一种风格解决方案,我建议您坚持使用 CSS。 JavaScript 很适合控制行为等,但无论是在功能还是速度上,没有什么比 CSS 样式表单更好的了。
一些不错的文章是Pretty Accessible Forms 或这个。
I'd recommend sticking to CSS if you are merelly looking for a stylistic solution. JavaScript is good to control behaviours and the such, but nothing beats CSS styling forms, both in capabilities and speed.
Some good articles are Pretty Accessible Forms or this ones.