how to remove css property using javascript?

前端 未结 10 1742
醉话见心
醉话见心 2020-11-27 12:46

is it possible to remove a CSS property of an element using JavaScript ? e.g. I have div.style.zoom = 1.2, now i want to remove the zoom property through JavaS

10条回答
  •  再見小時候
    2020-11-27 13:11

    This should do the trick - setting the inline style to normal for zoom:

    $('div').attr("style", "zoom:normal;");

提交回复
热议问题