Making radio buttons look like buttons instead

后端 未结 5 538
不思量自难忘°
不思量自难忘° 2020-11-29 21:49

I would like to have a set of radio buttons for a donation form, however I want them to look like buttons instead of the circle dials.

What is the best approach to m

5条回答
  •  迷失自我
    2020-11-29 22:13

    EDIT: this isn't a solution if you need to support IE browsers.


    You could use CSS appearance property:

    SEE DEMO

    -webkit-appearance: button; /* WebKit */
    -moz-appearance: button; /* Mozilla */
    -o-appearance: button; /* Opera */
    -ms-appearance: button; /* Internet Explorer */
    appearance: button; /* CSS3 */
    

提交回复
热议问题