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] 第320天 iframe可以使用父页面中的资源吗(如:css、js等)? #1981

Open
haizhilin2013 opened this issue Feb 29, 2020 · 1 comment
Labels
html html

Comments

@haizhilin2013
Copy link
Collaborator

第320天 iframe可以使用父页面中的资源吗(如:css、js等)?

我也要出题

@haizhilin2013 haizhilin2013 added the html html label Feb 29, 2020
@longhui520
Copy link

  • iframe 属于一个单独的文档不能直接使用父页面的资源,css的层叠不会影响iframe
  • iframe如果和父页面同域则可以在iframe中使用parent对象来使用父页的js对象

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

2 participants