<style type="text/css">
.radiostyle {
background-color: #999;
}
</style>
<label for="a1" class="radiostyle">
<Input type = radio Name = 1 Value = 100 Onclick="changecss()" id="a1">
100 bucks</label>
Run Code Online (Sandbox Code Playgroud)
函数changecss()的代码是什么,这样当单击单选按钮时,无线电背景会变为其他颜色,例如绿色.请帮忙,我在网上找了几个小时没有解决方案.