search

Home  >  Q&A  >  body text

document.getElementByID('p1').style.color="blue"; 为什么第一段文字没有变蓝色?

checkcheck2905 days ago994

reply all(2)I'll reply

  • 数据分析师

    数据分析师2017-09-30 23:16:29

    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.

    reply
    0
  • 迷茫

    迷茫2016-12-21 09:14:53

    document.getElementById('p1').style.color="blue"这样才对,document.getElementById()中的Id大小写有误

    reply
    1
  • Cancelreply