我现在想给id为ad下的ul赋值。
document.getelementbyid(adul).getelementsbytagname(ul).style.marginleft=cf+px;
但不行,请问如何给这ul赋值?
回复讨论(解决方案) document.getelementbyid(adul).getelementsbytagname(ul) [0].style.marginleft=cf+px;
$(#ad>ul).animate({marginleft: '20px'}, slow);
document.getelementbyid(ad).firstchild.style.marginleft=cf+px;
