滚动具体的元素节点

来源:互联网 发布:linux root 破解 编辑:程序博客网 时间:2024/05/21 11:08


document.getElementById("box").children[4].scrollIntoView(true);




//offsetWidth/Height border+padding+width
//clientWidth/Height: padding+width
//offsetLeft offsetTop offsetParent 获取每一个元素初始化的位置
阅读全文
0 0