强制游标:在IE中具有contenteditable属性的div中的链接指针

时间:2013-10-27 15:30:21

标签: html css internet-explorer contenteditable

我们在项目中使用ckeditor并发现以下问题:

我们应该在编辑器中显示链接的指针光标(按照设计)。它适用于除IE之外的所有浏览器。

简化的HTML:

<div contenteditable="true">
  <a href="foo.com" style="cursor: pointer;">Link to some site</a>
</div>

在IE中(在v.8和v.10中测试)它不起作用。

任何想法如何在IE中实现?

1 个答案:

答案 0 :(得分:0)

如何为cursor:pointer;分配<div contenteditable="true">

或者,您也可以使用jQuery:

$(function(){
    $('[contenteditable="true"]').css('cursor','pointer');
});
希望有所帮助。