<html>
<head>
<title>
ssssssssssss
</title>
<style type="text/css">
#con{color:red;
width:300px;height:200px;
border:1px solid pink;
}
</style>
</head>
<body>
<div id="con">坚实的快速健康的骄傲是肯定江苏旷达看蓝精灵</div>
<script type="text/javascript">
function qqq()
{
var k=document.getElementById("con");
k.style.color="green";
}
function www()
{
var k=document.getElementById("con");
k.style.height="500px";
k.style.width="400px";
}
function eee()
{
var k=document.getElementById("con");
k.style.display="none";
}
function rrr()
{
var k=document.getElementById("con");
k.style.display="block";
}
function ttt()
{
var k=document.getElementById("con");
var this=confirm("重置内容?");
if(this==true)
{
k.removeAttribute("style");
}
}
</script>
<input type="button" onclick="qqq()" value="改变颜色" />
<input type="button" onclick="www()" value="改变长宽" />
<input type="button" onclick="eee()" value="隐藏文本" />
<input type="button" onclick="rrr()" value="显示文本" />
<input type="button" onclick="ttt()" value="重置文本" />
</body>
</html>
我用记事本写得,检查好几遍查不出错误啊,哎,用360浏览器打开,按钮一个都不好使,显示不出效果。谢谢啦