不使用iframe的原因? [英] Reasons not to use iframes?

查看:168
本文介绍了不使用iframe的原因?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我听说很多次,使用iframe是一个坏主意。但我从来不知道为什么。这真的是一个坏主意吗?可能有人列出了一些resons不使用它们吗?

假设我想使用iframe异步加载一些内容来加载我的网站,如果这个内容不是' t意味着被搜索引擎索引。使用iframe仍然是个坏主意?

解决方案

它们比任何其他类型的DOM元素都要昂贵1-2个数量级,包括脚本和样式 a>




I've heard a lot of times that it's a bad idea to use iframes. But I never knew why. Is it really a bad idea? Could someone list a number of resons not to use them?

Supposing I wanted to use an iframe to load some content asynchronously to load my site faster, if this content wasn't meant to be indexed by search engines. Is it still bad idea to use an iframe?

解决方案

"They are 1-2 orders of magnitude more expensive to create than any other type of DOM element, including scripts and styles"

这篇关于不使用iframe的原因?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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