小编use*_*344的帖子

单击时如何更改单选按钮的CSS

<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()的代码是什么,这样当单击单选按钮时,无线电背景会变为其他颜色,例如绿色.请帮忙,我在网上找了几个小时没有解决方案.

html javascript css onclick

-3
推荐指数
1
解决办法
9561
查看次数

标签 统计

css ×1

html ×1

javascript ×1

onclick ×1