<script type="text/javascript">document.writeln("<iframe name=\"editor\" id=\"editor\" width=\"100%\"></iframe>");editor = document.getElementById("editor").contentWindow;editor.document.designMode = ‘On‘; editor.document.contentEditable = true; //但是IE与FireFox有点不同,为了兼容FireFox,所以必须创建一个新的document。editor.document.writeln(‘<html><body></body></html>‘); editor.document.clos
在线编HTML辑器(兼容IE和Firefox)
- 发布于:2019-09-07
- 共 208 人围观