This can be done using the cssText property: var el = document.getElementById('mydiv'); el.style.cssText = 'border-left: 1px; border-right: 2px; ...
確定! 回上一頁