小燕子412
2015-03-14 11:49
大神们,这些代码错在哪里了
非常感谢
<input type="button" value="改变颜色" onclick="color()">
function color(){
mytxt.style.backgroundColor="red"; //字体红色背景就不要红色了吧
<input type="button" value="显示内容" onclick="displayblock"> //没有这个函数
var mytxt=document.getElementById("txt");
mytxt.removeAttribute("style");大概就是这些错误。
JavaScript入门篇
741593 学习 · 9869 问题
相似问题