How can I make an HTML radiobutton with a big target area?

前端 未结 4 759
一向
一向 2021-01-01 16:05

Something like this:

\"enter

Where the user would click on any area of the but

4条回答
  •  轮回少年
    2021-01-01 17:05

    The best way is to just wrap the in its , as clicking a label also has the effect of focusing its associated input:

    
    

    No javascript required: Demo: http://jsfiddle.net/GTGan/

    If you need to style the label text separately, just wrap it in a .

提交回复
热议问题