hobby:<input id="x1" type="radio" name="sports" />x1<input id="x2" type="radio" name="sports" />x2<input id="x3" type="radio" name="sports" />x3<input type="button" value="顯示" onclick="ShowChecked()"><br><script> function ShowChecked(){
$("input").css("backgroundColor","");
$("input:checked").css("backgroundColor","red");
}
</script>選擇某個radio后,點擊 顯示 ,背景顏色沒有變紅哈?
css的設置沒有起作用?
倚天杖
2018-09-02 07:55:27