输出结果是什么?没有变蓝,p1p2是哪行输出的?
我是第一段文字
我是第二段文字
hello
以上是我的结果
我是第一段文字
我是第二段文字
hello
以上是我的结果
2016-04-22
我的也是颜色不变,囧。
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>热身</title>
</head>
<body>
<p id="p1">我是第一段文字</p>
<p id="p2">我是第二段文字</p>
<script type="text/javascript">
document.write("hello");
document.getElementByID("p1").style.color="red";
</script>
</body>
</html>举报