111,126
社区成员
发帖
与我相关
我的任务
分享
<script type="text/javascript">
window.onload = function () {
document.getElementById("showValue").contentWindow.document.write("<html><body style='margin:0px;color:<%=color %>;font-size:<%=size %>px;font-family:<%=font %>;word-spacing:5px;letter-spacing:2px;padding:0px;margin:0px; line-height:20px;z-index:100;background:#fff;left:0;top:0;work-wrap:break-word;overflow:hidden' scrolling='no' onload='this.height=showValue.document.body.scrollHeight+20'></body></html>");
document.getElementById("showValue").contentWindow.document.designMode = "on";
document.getElementById("showValue").contentWindow.document.contentEditable = true;
document.getElementById("showValue").contentWindow.focus();
}
</script>
<script type="text/javascript">
window.onload = function() {
document.getElementById("showValue").contentWindow.document.write("<html><body style='margin:0px'><div id='showMSG' style='border:solid 1px #ccc;' ></div></body></html>");
//document.getElementById("showValue").contentWindow.document.getElementById("showMSG").innerHTML="aaaa";
document.getElementById("showValue").contentWindow.document.getElementById("showMSG").contentEditable = "true";
document.getElementById("showValue").contentWindow.document.getElementById("showMSG").focus();
//document.getElementById("showValue").contentWindow.document.designMode = "on";
}
</script>
<script type="text/javascript">
window.onload = function () {
document.getElementById("showValue").contentWindow.document.write("<html><body style='margin:0px'><div id='showMSG' style='color:<%=color %>;font-size:<%=size %>px;font-family:<%=font %>;word-spacing:5px;letter-spacing:2px;padding:0px;margin:0px; line-height:20px;z-index:100;background:#fff;left:0;top:0;work-wrap:break-word;overflow:hidden' scrolling='no' onload='this.height=showValue.document.body.scrollHeight+20' > </div></body></html>");
document.getElementById("showValue").contentWindow.document.getElementById("showMSG").focus();
document.getElementById("showValue").contentWindow.document.designMode = "on";
document.getElementById("showValue").contentWindow.document.contentEditable = true;
}
</script>