使用 window.getComputedStyle 方法

    1. var item = document.querySelector(".item");
    2. console.log(window.getComputedStyle(item));

    image.png