document.getElementById("txt").removeAttribute('style');是否移除id為txt對(duì)象的一切屬性,請(qǐng)指導(dǎo)
document.getElementById("txt").removeAttribute('style');不會(huì)取消<head>中給它定義的樣式嗎?
document.getElementById("txt").removeAttribute('style');不會(huì)取消<head>中給它定義的樣式嗎?
2015-03-20
舉報(bào)
2015-03-24
只會(huì)移除寫(xiě)在樣式里的style屬性,不會(huì)修改外部或頭部style里的競(jìng)爭(zhēng)屬性.