javascript - Why should margin be removed when converting floating layout to positioned layout?
PHP中文网
PHP中文网 2017-07-05 10:39:16
0
1
635
for(var i=0;i<aLi.length;i++){
                aLi[i].style.position = 'absolute';
                aLi[i].style.left = arr[i][0] + 'px';
                aLi[i].style.top = arr[i][1] + 'px';
                ***aLi[i].style.margin = 0;***
            }
PHP中文网
PHP中文网

认证0级讲师

reply all(1)
typecho

What you gave is not enough to make a judgment. I suggest you add it to see what the difference is

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template