通過(guò)獲取標(biāo)簽名實(shí)現(xiàn)效果怎么不行啊
document.write("hello!") document.getElementById("p1").style.color="blue"; ? ? ? ?document.getElementsByTagName("p")[1].style.text-decoration="underline"; 哪里不對(duì)么?為什么把最后一行代碼添上之后前兩行代碼實(shí)現(xiàn)的效果也消失了?
document.write("hello!") document.getElementById("p1").style.color="blue"; ? ? ? ?document.getElementsByTagName("p")[1].style.text-decoration="underline"; 哪里不對(duì)么?為什么把最后一行代碼添上之后前兩行代碼實(shí)現(xiàn)的效果也消失了?
2016-07-31
舉報(bào)
2016-07-31
2016-09-07
textDdecoration ?多了個(gè)d 應(yīng)為textDecoration
2016-07-31
應(yīng)該是重置了吧 .....? 會(huì)不會(huì)是放的順序不對(duì)?