Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[html] 第85天 iframe的使用场景有哪些? #592

Open
haizhilin2013 opened this issue Jul 9, 2019 · 8 comments
Open

[html] 第85天 iframe的使用场景有哪些? #592

haizhilin2013 opened this issue Jul 9, 2019 · 8 comments
Labels
html html

Comments

@haizhilin2013
Copy link
Collaborator

第85天 iframe的使用场景有哪些?

@haizhilin2013 haizhilin2013 added the html html label Jul 9, 2019
@fuhao97
Copy link

fuhao97 commented Jul 10, 2019

1:典型系统结构,左侧是功能树,右侧就是一些常见的table或者表单之类的。为了每一个功能,单独分离出来,采用iframe。 
2:ajax上传文件。 
3:加载别的网站内容,例如google广告,网站流量分析。
4: 在上传图片时,不用flash实现无刷新。
5: 跨域访问的时候可以用到iframe,使用iframe请求不同域名下的资源。

@nowherebutup
Copy link

nowherebutup commented Jul 10, 2019

1.公共的头部或底部,用iframe嵌入
2.网站的小广告使用iframe嵌入
3.一个系统想用另外一个系统的某个独立功能

@pokerLife
Copy link

不喜欢iframe,iframe布局都是给懒人准备的,而且使用iframe不利于seo

@dondonZh
Copy link

1.图表嵌入
2.广告
3.跨域访问

@JiangXue93
Copy link

跨域方面扩展下:
1、接入h5游戏
2、接入支付
3、视频,官网背景视频
4、用户三方登录

@zlx362211854
Copy link

下载文件,使用window.open打开选项卡的话,页面会有闪动,用iframe来下载文件,可避免上面的问题

@forever-z-133
Copy link

隔离 dom,比如单独打印某个小页面,又不想受父窗口的样式影响,则可以新建个 iframe 来打印。

@MrZ2019
Copy link

MrZ2019 commented Feb 25, 2021

1:典型系统结构,左侧是功能树,右侧就是一些常见的table或者表单之类的。为了每一个功能,单独分离出来,采用iframe。 
2:ajax上传文件。 
3:加载别的网站内容,例如google广告,网站流量分析。
4: 在上传图片时,不用flash实现无刷新。
5: 跨域访问的时候可以用到iframe,使用iframe请求不同域名下的资源。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
html html
Projects
None yet
Development

No branches or pull requests

9 participants