1 var mydiv = document.getElementById(ID)
mydiv.scrollIntoView()
- var oDiv = document.getElementById(ID);
var t = document.createElement("input"); t.type = "text";
oDiv.insertBefore(t, null);
t.focus();
oDiv.removeChild(t);
1 var mydiv = document.getElementById(ID)
mydiv.scrollIntoView()
本文标题:点击元素(按钮等)定位至对应div
本文链接:https://www.haomeiwen.com/subject/grwbbltx.html
网友评论