用iframe显示静态文本内容 [英] Displaying static text content with iframe
问题描述
< div>
标签,我在其中显示一些文本内容。 我想要显示< iframe>
中的相同文本内容。我正在努力实现的是我在下面写的。任何人都可以请帮忙吗?
< b>
< div>这是我想要在iframe中显示的内容< / div>
< iframe id =iframesrc =>< / iframe>< / b>
如果它是静态HTML网站,创建一个包含您要显示的内容的新页面,并设置< iframe> $ c $的
src
如果它是动态页面应用程序(服务器端),则创建新页面$> c $ c>或
处理程序
或控制器
(无论适用)并设置 src
< iframe>
。
这是实现最佳和最简单的方法你想完成。
I have a svery simple requirement. I have a <div>
tag within which I am displaying some text content.
I want to display the same text content in an <iframe>
. What I am trying to achieve I have written below. Can anyone please help?
<b>
<div>This is a content which I want to display in iframe</div>
<iframe id="iframe" src=""></iframe></b>
If it is a static HTML site, create a new page with the content which you want to show and set the src
of the <iframe>
.
If it is a dynamic page app (server side), create a new page
or handler
or controller
(whatever applies) and set the src
of the <iframe>
.
These are the best and simplest ways to achieve what you want to accomplish.
这篇关于用iframe显示静态文本内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!