最赞回答 / iwmw_七滴_0
background可以在同时设置有关背景的多个属性,如背景图,背景颜色,背景大小,背景切割,背景是否重复等等,而backgroundColor只能设置背景颜色
2015-08-25
function openWindow(){
var openwin=confirm("确认打开网址?");
if(openwin==true)
{var ensure=prompt("确认打开以下网址?","www.imooc.com/")
if(ensure!=null){window.open("http://"+ensure,'_blank','width=400px,height=500px,menubar=no,toolbar=no')}
else {}
}
else
{}
}
var openwin=confirm("确认打开网址?");
if(openwin==true)
{var ensure=prompt("确认打开以下网址?","www.imooc.com/")
if(ensure!=null){window.open("http://"+ensure,'_blank','width=400px,height=500px,menubar=no,toolbar=no')}
else {}
}
else
{}
}
<script type="text/javascript">
document.write("开启JS之旅!");
</script>
document.write("开启JS之旅!");
</script>
2015-08-24
document.write("hello");
document.getElementById("p1").style.color="blue";
document.getElementById("p1").style.color="blue";
2015-08-24