【发布时间】:2018-05-13 01:09:28
【问题描述】:
我创建了一个动态 html 页面,并通过单击在文本编辑器中打开动态 html 页面的内容在 home.html 页面中打开它。当我在文本编辑器中编辑内容时,我希望这些更改自动出现在动态 html 页面中
我已经创建了动态 html 页面内容
<h1>This is my first content</h1>
<h2>This is my first content</h2>
<h3>This is my first content</h3>
<h4>This is my first content</h4>
<h5>This is my first content</h5>
我在 home.html 中打开了
$(function () {
load_home();
});
function load_home() {
document.getElementById("content").innerHTML='<object style="width:100%; height:1000px; overflow-y:hidden;" type="text/html" data="Responce.html" ></object>';
}
我通过点击编辑按钮在 iframe 中打开了内容
<iframe id="texteditor" src="Responce.html" name="texteditor" style="width: 100%; height: 74%;"></iframe>
当我在文本编辑器中编辑内容时,我希望更改自动显示在动态 html 页面中。
【问题讨论】:
-
我们应该编码吗?
-
首先:stackoverflow.com/help/how-to-ask如果你想要所有代码,也许你想雇人
-
请参阅此link。这可能是您的问题的可能解决方案。
-
嗨,欢迎来到 Stack Overflow,请花时间阅读 tour 以及 How to Ask 和 help center。
标签: javascript jquery html css