开发者

How to put an image on a radio button in HTML [duplicate]

This question already has answers here: Closed 11 years ago.

Possible Duplicate:

add an image to a html type input check box or radio

Hi, I want to make a rating div using radio buttons in HTML .. I want users to look at a picture and rate it. So, I want to use and have a star image on each one ..

I searched every where and couldnt do it. I found one topic her开发者_高级运维e that use javascript to do this .. But it was not efficient and it made my icons extremely large

add an image to a html type input check box or radio


This article will help: Styling Checkboxes and Radio Buttons With CSS and JavaScript.

But this one is better: Accessible, Custom Designed Checkbox and Radio Button Inputs Styled with CSS (and a dash of jQuery).


If you want to use jQuery, see this link : jQuery Star Rating Plugin

If you want to use if with ASP.NET, you can use Ajax Control Toolkit, see this link: Ajax Rating Sample

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜