样式单选按钮(jquery?)

发布于 2024-08-19 02:41:39 字数 72 浏览 4 评论 0原文

我需要单选的功能,但没有样式。

我如何设置某些东西(任何东西)的样式,使其像单选按钮一样工作,并捕获表单中的输入?

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

我不吻晚风 2024-08-26 02:41:39

这个之类的东西?

我认为他们所做的只是隐藏了页面上实际的单选按钮,用漂亮的图标、图像和文本替换它们。单击这些元素会强制单选按钮在幕后更改。

有各种各样的:

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/

醉生梦死 2024-08-26 02:41:39

写了一篇教程,介绍如何仅使用 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 :)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文