setAttribute都能設(shè)定什么屬性
if(text=="")
? ?{
? ? Lists[i].setAttribute("color","red");
? ?document.write(Lists[i].getAttribute("color")+"
");
? ?}
?}
setAttribute具體都能規(guī)定哪些屬性呢,color和font這種為什么不行
if(text=="")
? ?{
? ? Lists[i].setAttribute("color","red");
? ?document.write(Lists[i].getAttribute("color")+"
");
? ?}
?}
setAttribute具體都能規(guī)定哪些屬性呢,color和font這種為什么不行
2016-11-20
舉報(bào)
2016-11-20
因?yàn)閔tml標(biāo)簽不支持 color 屬性,如果需要設(shè)置樣式請(qǐng)使用
2016-11-24