課程
/前端開發(fā)
/JavaScript
/JavaScript入門篇
document.getElementByID('p1').style.color="blue"; 為什么第一段文字沒有變藍色?
2016-12-06
源自:JavaScript入門篇 1-1
正在回答
document.getElementById('p1').style.color="blue"這樣才對,document.getElementById()中的Id大小寫有誤
希望你下載個編輯器,例如subline或則DW,在編輯器里面進行操作,如果你的代碼寫錯,編輯器會提示你
JavaScript中的大小寫很重要,一般都是區(qū)分大小寫的,如果寫錯了,會執(zhí)行不到的
document.getElementById(‘con’).style.color="blue";
document.getElementById();這個是標準格式,不能寫錯哦
舉報
JavaScript做為一名Web工程師的必備技術,本教程讓您快速入門
4 回答將第13行原代碼document.getElementById("p1").style.color="blue";改為document.getElementById("p1").style.width="200px";為什么字體不變
5 回答document.write("hello"); document.getElementById("p1").style.color="blue";
7 回答document.getElementById("p1").style.color="blue"; js語句有沒有固定語法?
3 回答 為什么第二段文字不變成藍色
4 回答document.getElementByid("p1").style.color="blue";這句話寫上后為什么字體還是黑色,求解啊
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網(wǎng)安備11010802030151號
購課補貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動學習伙伴
掃描二維碼關注慕課網(wǎng)微信公眾號
2016-12-06
document.getElementById('p1').style.color="blue"這樣才對,document.getElementById()中的Id大小寫有誤
2016-12-06
希望你下載個編輯器,例如subline或則DW,在編輯器里面進行操作,如果你的代碼寫錯,編輯器會提示你
2016-12-06
JavaScript中的大小寫很重要,一般都是區(qū)分大小寫的,如果寫錯了,會執(zhí)行不到的
document.getElementById(‘con’).style.color="blue";
2016-12-06
document.getElementById();這個是標準格式,不能寫錯哦