最新回答 / qq_long妹_0
document.write("hello"); document.getElementById("p1").style.color="blue";以上为正确答案,你稍加对比可以明白。
2018-03-11
已采纳回答 / qq_long妹_0
根据题目的要求,还需要添加一句prompt,向用户确认是否要打开http://www.imooc.com,用户可以选择打开其它的网址。你的代码无法打开其它的网址。
2018-03-11
最赞回答 / 慕盖茨8345433
var txt=document.getElementById("txt"); var set={ changeColor:function(){ txt.style.color="red"; txt.style.backgroundColor="#ccc"; }, changeSize:function(){ txt.style.width="300px"; txt.style.height="300px"; }, ...
2018-03-09