在HTML 5中iframe的替代方式 [英] alternative way for iframe in html 5

查看:1238
本文介绍了在HTML 5中iframe的替代方式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友们,



什么是html5中iframe的替代品。我不需要iframe概念。哪种浏览器支持替代方式。

解决方案

html5中iframe的替代方式

AFAIK,有即使在HTML5中也无法替代iFrame。



虽然您可以尝试使用XMLHTTPRequest而不是使用iFrame在运行时加载内容。


您可以使用< ;嵌入>元素



< embed id =123src =http://google.com/>



浏览器支持



在chrome,safari和firefox中正常工作



for firefox to工作



< object data =urltype = text / html>

< embed src =urlid = 123> ;

< / embed>

< / object>



或者你可以使用div

Hi friends,

What is alternate for iframe in html5. I dont need iframe concepts. Which browsers are support in alternative way.

解决方案

alternative way for iframe in html5
AFAIK, there is no alternative of iFrame even in HTML5.

Though you can try alternative like loading the content at runtime using XMLHTTPRequest instead of using an iFrame.


you can use <embed> element

<embed id="123" src="http://google.com" />

browser support

working fine in chrome ,safari and firefox

for firefox to work

<object data="url" type=text/html>
<embed src="url" id=123>
</embed>
</object>

or you can use div


这篇关于在HTML 5中iframe的替代方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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