这节设置的参数怎么都没有反应啊?我试了单独卸载notepad+里面然后显示,还是一样的,有人可以解答一下么?
浏览器解析的问题你用IE试试
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>window.open</title>
<script type="text/javascript">
function Wopen(){
window.open('http://www.imooc.com','_blank','width=600,height=400,left=0px,top=100px')
}
</script>
</head>
<body>
<input name="button" type="button" onClick="Wopen()" value="点击我,打开新窗口!" / >
</body>是浏览器问题,你可以用微软自带的浏览器Internet Explorer打开,就可以看到效果
function add(){
var p1 = document.getElementById("p1");
p1.className="one";
}
function modify(){
var p2 = document.getElementById("p2");
p2.className="two";
}
你把代码贴出来吧!
<script type="text/javascript">
function add(){
var p1 = document.getElementById("p1");
p1.className='one';
}
function modify(){
var p2 = document.getElementById("p2");
p2.className='two';
}
</script>检查大小写问题,大小写敏感。className,一般问题在这
代码贴出来才知道问题。