我有一个contenteditable div需要集中在pageload(将光标放在第一行).
document.getElementById("editor").focus() 在Firefox和IE中运行良好,但在Chrome/Safari中它只选择整个内容!
document.getElementById("editor").focus()
有没有办法使这项工作正常?
在此先感谢, Shesh
html safari google-chrome contenteditable
contenteditable ×1
google-chrome ×1
html ×1
safari ×1