改变颜色的哪里有错
var text=document.getElementById("txt");
function add1(){
text.style.color="red";}
<input type="button" value="改变颜色" onclick="add1()">
var text=document.getElementById("txt");
function add1(){
text.style.color="red";}
<input type="button" value="改变颜色" onclick="add1()">
2016-10-25
举报