在IE里正常,,FF里鼠标定位到编辑框的时候,光标只有一半,上半部分好像在编辑框外面一样。。
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title> new document </title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css"></style>
</head><body>
<iframe id="myedit" name="myedit" style="border:1px solid #ccc; padding:5px;" frameborder="0" marginWidth="0" marginHeight="0" width="350" height="200"></iframe>
</body>
</html><script language="javascript">
var dd=document.getElementById('myedit').contentWindow;
function editor () {
dd.document.designMode="on";
dd.document.open();
    dd.document.write('<html><body><div></div></body></html>');
    dd.document.close();
}
window.load=editor();</script>