用iframe显示静态文本内容 [英] Displaying static text content with iframe

查看:1007
本文介绍了用iframe显示静态文本内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个简单的要求。我有一个< div> 标签,我在其中显示一些文本内容。



我想要显示< iframe> 中的相同文本内容。我正在努力实现的是我在下面写的。任何人都可以请帮忙吗?

 < b> 
< div>这是我想要在iframe中显示的内容< / div>
< iframe id =iframesrc =>< / iframe>< / b>


解决方案

如果它是静态HTML网站,创建一个包含您要显示的内容的新页面,并设置< iframe> 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆