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

查看:142
本文介绍了将图像添加到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?

推荐答案

http://ryanfait.com/resources/custom-checkboxes-and-radio-buttons/rel =nofollow> 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天全站免登陆