样式单选按钮(jquery?)
我需要单选的功能,但没有样式。
我如何设置某些东西(任何东西)的样式,使其像单选按钮一样工作,并捕获表单中的输入?
I need the functionality of a radio selection, without the style.
How can I style something (anything) to work like a radio button, and capture the input in a form?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
像这个之类的东西?
我认为他们所做的只是隐藏了页面上实际的单选按钮,用漂亮的图标、图像和文本替换它们。单击这些元素会强制单选按钮在幕后更改。
有各种各样的:
http://www.chriserwin.com/scripts/crir/ index.php
http://lipidity.com/fancy-form/
http://widowmaker.kiev.ua/checkbox/
Something like this?
I think what they've done is just hidden the actual radio buttons on the page, replacing them with fancy looking icons, images and text. Clicking these elements forces the radio buttons to change behind the scenes.
There's all kinds of them:
http://www.chriserwin.com/scripts/crir/index.php
http://lipidity.com/fancy-form/
http://widowmaker.kiev.ua/checkbox/
我写了一篇教程,介绍如何仅使用 CSS 创建自定义单选按钮。基本上,您可以隐藏单选按钮本身并根据需要设置其标签的样式,这非常简单。也许这有帮助:)
I wrote a tutorial about how to create customized radio buttons with CSS only. Basically you hide the radio button itself and style its label how you want, it is pretty easy. Maybe this helps :)