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