1.只讀與可寫getComputedStyle方法是只讀的,只能獲取樣式,不能設(shè)置;而element.style能讀能寫,能屈能伸。2.獲取的對象范圍getComputedStyle方法獲取的是最終應(yīng)
億速云公眾號
手機網(wǎng)站二維碼
Copyright ? Yisu Cloud Ltd. All Rights Reserved. 2018 版權(quán)所有
廣州億速云計算有限公司粵ICP備17096448號 粵公網(wǎng)安備 44010402001142號增值電信業(yè)務(wù)經(jīng)營許可證編號:B1-20181529