将图像添加到 html 类型输入复选框或单选框 [英] add an image to a html type input check box or radio

查看:23
本文介绍了将图像添加到 html 类型输入复选框或单选框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为 html 输入类型复选框和单选框的未选中和选中的值指定一个图像.

I'm trying to specify an image to be used for my unchecked and checked values for html input type checkbox and radio.

我有这个:

background: url("image.png") no-repeat;

但它似乎不适用于收音机和仅复选框按钮.

but it doesnt seem to work on radio and checkbox only button.

有没有人知道一些有用的东西?

Does anyone know something that will work?

推荐答案

看看这个 Ryan Fait - 自定义复选框和单选按钮 ...希望这是您要找的东西 ;)

Take a look at this Ryan Fait - Custom checkboxes and radio buttons ... Hope it's what you're looking for ;)

这篇关于将图像添加到 html 类型输入复选框或单选框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆