<!DOCTYPE HTML><HTMLLang= "en"><Head> <Metahttp-equiv= "Content-type"content= "Text/html;charset=utf-8"> <Metahttp-equiv= "X-ua-compatible"content= "Ie=edge" /> <title>Change the radio button display style</title> <style>input[type= ' Radio '].radio{Opacity:0;Display:Inline-block;Height:20px; }Label.radio{background:URL (imgs/radio_check.png) no-repeat;Height:20px;Padding-left:25px;}input[type= ' Radio '].radio:checked +. Radio{background:URL (imgs/radio_checked.png) no-repeat;} </style></Head><Body> <inputtype= "Radio"name= "Gender"ID= "X"value= "X"><label for= "X">I want to keep it secret</label><BR> <inputtype= "Radio"name= "Gender"ID= "Y"value= "M"><label for= "Y">I'm a handsome guy.</label><BR> <inputtype= "Radio"name= "Gender"ID= "Z"value= "F"><label for= "Z">I'm a beauty.</label><BR> <inputtype= "Radio"name= "Sex"ID= "a"value= "X"class= "Radio"><label for= "a"class= "Radio">I want to keep it secret</label><BR> <inputtype= "Radio"name= "Sex"ID= "B"value= "M"class= "Radio"><label for= "B"class= "Radio" >I'm a handsome guy.</label><BR> <inputtype= "Radio"name= "Sex"ID= "C"value= "F"class= "Radio"><label for= "C"class= "Radio" >I'm a beauty.</label><BR></Body></HTML>
HTML radio button style change