任务上的提示:stylc.display这句代码是错的!是style.display才对。就我一个显示不正确吗
2016-03-09
最新回答 / 瓶瓶罐罐_瓶子瓶子呦
var mye=document.getElementById("txt");function resetStyle(){ var message=confirm("你确定重置所有样式吗?"); if(message==(true){ mye.removeAttribute('style')}}
2016-03-09
大家来尝一下新鲜的按钮代码<script type="text/javascript">
function F5win(){
var openwin=window.open("http://www.imooc.com","_blank","width=200,height=200,top=200,left=200");openwin.close();}
</script>
</head>
<body>
<form>
<input type="button" name="button" value="点击刷新网页" onclick="F5win()"/>
</form>
function F5win(){
var openwin=window.open("http://www.imooc.com","_blank","width=200,height=200,top=200,left=200");openwin.close();}
</script>
</head>
<body>
<form>
<input type="button" name="button" value="点击刷新网页" onclick="F5win()"/>
</form>
2016-03-09
window.open('http://www.imooc.com','_blank','width=600,height=400,left=0,top=0'); 里面的值要用等于号,不能分号
2016-03-09
误解了好久哦,一直以为x.innerHTML=""是需要document.wirte()才能在网页上显示的。我真是蠢得来一波又一波的。无语了
2016-03-09