请问,为何在代码中oUl.style.width = oLi[0].offsetWidth*oLi.length+"px"; 右侧用offsetWidth?为何不能用style.width来表示每一个li的宽度呢?
临摹微笑
相关分类