我们在元素中使用了 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 中实现吗?
最佳答案
如何分配 cursor:pointer;
对于 <div contenteditable="true">
?
或者,您也可以使用 jQuery 来完成:
$(function(){
$('[contenteditable="true"]').css('cursor','pointer');
});
希望对您有所帮助。
关于html - 强制光标 :pointer for link in a div with contenteditable attribute in IE,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19619788/