運(yùn)行結(jié)果并未變藍(lán)??
<!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.getElmentById("p1").style.color = "blue";
? </script>
</body>
</html>
2019-09-06
好好看看你寫的跟圖片一樣的嘛?
2019-08-29
getElementById少了一個e
2019-07-09
第十三行的getElementById少了一個e
2019-05-17
對比上下文,getElementById少了個e
2019-04-27
document.getElmentById("p1").style.color = "blue";
對比下上下兩行代碼(上面的是你寫的)
document.getElementById("p1").style.color = "blue";
2019-04-27
倒數(shù)第4行的getElementById少了個e