小编She*_*abu的帖子

ContentEditable专注于Chrome/Safari

我有一个contenteditable div需要集中在pageload(将光标放在第一行).

document.getElementById("editor").focus() 在Firefox和IE中运行良好,但在Chrome/Safari中它只选择整个内容!

有没有办法使这项工作正常?

在此先感谢,
Shesh

html safari google-chrome contenteditable

7
推荐指数
1
解决办法
4759
查看次数

标签 统计

contenteditable ×1

google-chrome ×1

html ×1

safari ×1