在FireFox中contentEditable光标的位置/样式 [英] contentEditable cursor position/style in FireFox
本文介绍了在FireFox中contentEditable光标的位置/样式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在FireFox 3中使用contentEditable时遇到问题.单击鼠标后,光标将出现在div上方或仅部分出现在div中(直到我开始输入时,它才能正常工作).关于如何阻止这种情况的任何想法?
I'm having trouble using contentEditable in FireFox 3. I have a problem where the cursor will appear above or only partially in the div after I click in it (until I start typing at which time it behaves correctly). Any ideas on how I can stop this from happening?
HTML:
<html>
<head><title>Test Page</title></head>
<body>
<div id="editor" style="position:absolute; left:157px; top:230px; width:120px; height:30px">
<div id="input" style="width:100%; height:100%; border:1px solid black; outline:none" contentEditable="true"> </div>
</div>
</body>
</html>
推荐答案
我等待着使用仅在Firefox 4及更高版本中可编辑的内容.我提出了这个问题以及Mozilla团队为FF 4修复的其他一些错误.
I waited and used the content editable only in Firefox 4 and higher. I filed this and a few other bugs which the Mozilla team has fixed for FF 4.
这篇关于在FireFox中contentEditable光标的位置/样式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文