【发布时间】:2015-01-18 21:44:55
【问题描述】:
我有一些 html 如下(对于 IE9):
<div contenteditable="true">
Some editable text
<span class="code" contenteditable="true" unselectable="on">uneditable text</span>
more editable text
</div>
在 IE9 中,span contenteditable 必须设置为“true”以使 span 不可编辑,而在 Chrome 中,它设置为“false”以使 span 不可编辑!
但是,在 IE9 中,当鼠标移过跨度时,光标会显示为移动光标(交叉箭头)。光标在我的 css 文件中设置为“指针”,但这不适用于 IE9。
如何在 IE9 中将光标更改为手形或箭头?
【问题讨论】:
-
这里的属性名
contententeditable只是这里贴出的代码中的一个错字,对吧?您的真实代码具有正确的名称contenteditable,对吗?如果是,请编辑问题。
标签: javascript html css internet-explorer-9