最近中文字幕高清中文字幕无,亚洲欧美高清一区二区三区,一本色道无码道dvd在线观看 ,一个人看的www免费高清中文字幕

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

新手求解???

<!doctype html>

<html>

<head>

<meta http-equiv="content-type" content="text/html; charset=utf-8">

<title>初識(shí)css</title>

<script type="text/javascript">

document.write("hello");

document.getElementById("p1").style.color="blue";

</script>

</head>

<body>

<p id="p1">我是第一段文字</p>

<p id="p2">我是第二段文字</p>

</body>

</html>

為什么P1不顯示為藍(lán)色?

正在回答

1 回答

<!doctype?html>
<html>
<head>
????<meta?http-equiv="content-type"?content="text/html;?charset=utf-8">
????<title>初識(shí)css</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>

因?yàn)槟愕膉s代碼執(zhí)行時(shí),頁(yè)面的p標(biāo)簽還沒有生成。

0 回復(fù) 有任何疑惑可以回復(fù)我~
#1

qq_嘴角洋溢起的一絲微笑_0 提問者

非常感謝!
2015-11-26 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消
JavaScript入門篇
  • 參與學(xué)習(xí)       741541    人
  • 解答問題       9869    個(gè)

JavaScript做為一名Web工程師的必備技術(shù),本教程讓您快速入門

進(jìn)入課程

新手求解???

我要回答 關(guān)注問題
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)