【发布时间】:2012-03-18 17:28:15
【问题描述】:
我希望输入文本时跨度自动扩展。这适用于除 IE(v9 测试)之外的所有浏览器,其中文本会覆盖后面的短语(“应该推送文本。”)。
有补救措施吗?看来是刷新问题。布局引擎应该发出刷新。 编辑:在兼容模式下
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" >
它有效,所以它是一个新的 IE9 问题。解决方法?
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<div id="link-widget-container">
<p>this "
<span id="goal" contenteditable="true"
spellcheck="false"
class="input-widget">
test
</span>
" should push this text.
</p>
</div>
</body>
</html>
【问题讨论】:
标签: internet-explorer contenteditable html