How to set / update / alter the `psudo` elements values in javascript?

前端 未结 0 1041
小鲜肉
小鲜肉 2020-12-23 11:15

I can able to get the value like this:

const childStyle = window.getComputedStyle(child, \'::before\');
const left = childStyle.getPropertyValue(\'left\');


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题