qq_悠悠茶馨_04096449
2016-09-30 10:23
输入13行的代码之后输出字体并没有变成蓝色
打错了
13行getElementByID错了
最后一位是小写
我的也沒變色
<!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="blue";
</script>
</body>
</html>
把你的源码发过来,让大家看一下
源码给我看一下
JavaScript入门篇
741708 学习 · 9869 问题
相似问题