I did an experiment today
node.style ["margin-left"] =" 100px"
this code successfully sets the css property
but when I output node.style in the console, I don"t find the attribute margin-left. I just see
. 
marginLeft
visit node.style ["margin-left"] again and you will get 100px
question:
- Why there is no margin-left property in the object and its prototype, but I only set
style.marginLeft, accessmargin-leftstill has a value and change one side and the other will change
