document.getElementByID('p1').style.color="blue"; Why doesn't the first paragraph of text turn blue? -PHP Chinese website Q&A-document.getElementByID('p1').style.color="blue"; Why doesn't the first paragraph of text turn blue? -PHP Chinese website Q&A
document.getElementByID('p1').style.color="blue"; Why doesn't the first paragraph of text turn blue? -PHP Chinese website Q&A-document.getElementByID('p1').style.color="blue"; Why doesn't the first paragraph of text turn blue? -PHP Chinese website Q&A
Please watch and learn.
document.getElementById('p1').style.color="blue"这样才对,document.getElementById()中的Id大小写有误