怎样获得光标的位置,大家看看这个难题
vme 2003-12-23 05:19:19 在DIV中,设置contenteditable属性:
<div id="WebEditDesign" contenteditable style="padding:3px; height:100px; width:99%; background-color:white; border: 1px inset #666666; overflow:auto;"></div>
在编辑状态下怎么获得光标的位置,或光标在WebEditDesign.innerHTML中的位置。
注:DIV不支持TextRange对象。