在13行輸入后,沒(méi)有變顏色
<!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.getElenebtById("p1").style.color="blue";
? </script>
</body>
</html>
2016-07-19
element ?單詞寫(xiě)錯(cuò)了
2016-07-20
<!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("pl").style.color="blue";
? </script>
</body>
</html>
我的代碼是這樣的,感覺(jué)沒(méi)有錯(cuò)誤,但是還是沒(méi)有效果
跪求解