在JavaScript中改变页面文档的背景色,需修改document对象的bgC

题库2022-08-02  44

问题 在JavaScript中改变页面文档的背景色,需修改document对象的bgColor属性,表示形式为document.BgColor。其中A、B、D虽然都代表背景色的意思,但是Javascript中document对象仅有一种表示法,为document.BgColor,故本题选C。doucument常用对象方法document.write(  )//动态向页面写入内容document.createElementByID(Tag)//创建一个html标签对象document.getElementByID(ID)//获得指定ID值的对象document.getElementsByName(Name)//获得指定Name值的对象

选项

答案 D

解析
转载请注明原文地址:https://tihaiku.com/congyezige/2424011.html

最新回复(0)