题目内容
(请给出正确答案)
[主观题]
页面中有一个id为price的层,并且有一个id选择器price用来设置层price的样式,在IE浏览器中运行此页面,下面()能正确获取层的背景颜色。
A、document.getElementById(“price”).currentStyle.backgroundColor
B、document.getElementById(“price”).currentStyle.background-color
C、document.getElementById(“price”).style.backgroundColor
D、var divObj=document.getElementById(“price”); Document.defaultView.getComputedStyle(divObj,null).background;
如搜索结果不匹配,请 联系老师 获取答案