#

getcomputedstyle

  • getcomputedstyle和style的區(qū)別

    1.只讀與可寫getComputedStyle方法是只讀的,只能獲取樣式,不能設(shè)置;而element.style能讀能寫,能屈能伸。2.獲取的對象范圍getComputedStyle方法獲取的是最終應(yīng)

    作者:喝醉的熊
    2020-07-19 18:59:33