How do you set the styles of elements if you do not use "foreign" libraries
Only registered users can participate in the survey. Please come in.
How do you set the styles of elements if you do not use "foreign" libraries
- 55.6% el.style.width = "10px"; el.style.height = "10px"; 406
- 21.3% el.setAttribute ("style", "width: 10px; height: 10px") 156
- 12.8% el.style.cssText = "width: 10px; height: 10px" 94
- 10% of my version, which I described (or did not describe) in a comment 73