搜索

首页  >  问答  >  正文

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

checkcheck2969 天前1024

全部回复(2)我来回复

  • 数据分析师

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

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

    围观一下哦,学习一下。

    回复
    0
  • 迷茫

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

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

    回复
    1
  • 取消回复