<script>
var score=80;//score变量存储成绩,初始值为80
if(score>=60)
{ document.write("超级棒")}
else
{document.write("继续努力,永不言弃")}
</script>
var score=80;//score变量存储成绩,初始值为80
if(score>=60)
{ document.write("超级棒")}
else
{document.write("继续努力,永不言弃")}
</script>
2016-03-04
<script src="scritp.js"></script>
2016-03-04
document.write("hello word");
document.getElementById("id")style.color="blue"
document.getElementById("id")style.color="blue"
2016-03-04
<! DOCPYTE HTML>
<html>
<head>
<title>js</title>
<script>
document.write.GetElementById("color").style.color="blue";
</script>
</bead>
<body>
<p id="color">I love javascript!</p>
</body>
</html>
<html>
<head>
<title>js</title>
<script>
document.write.GetElementById("color").style.color="blue";
</script>
</bead>
<body>
<p id="color">I love javascript!</p>
</body>
</html>
2016-03-04
已采纳回答 / cielzhao
meta 是 html 中的元标签,其中包含了对应 html 的相关信息,客户端浏览器或服务器端的程序会根据这些信息进行处理。http-equiv 类似于 http 的头部协议,它回应给浏览器一些有用的信息,以帮助正确和精确地显示网页内容。content(内容类型):这个网页的格式是文本的,网页模式。charset=utf-8 表示这个网页的编码是 utf-8,其他类型的编码中文可能会出现乱码。具体内容是在百度里边查的,一般在 html5 中可以简写成<meta charset="utf-8" /&...
2016-03-04
<script type="text/javascript">
var mychar= document.getElementById("con");
mychar.style.color="red";
mychar.style.backgroundColor="#CCC";
mychar.style.width="300px";
</script>
var mychar= document.getElementById("con");
mychar.style.color="red";
mychar.style.backgroundColor="#CCC";
mychar.style.width="300px";
</script>
2016-03-04