1 子窗口为父窗口传值通信,点击某一个弹框,显示详细内容

iframe的使用

iframe的使用

子盒子里面的代码,父元素使用的使用vue的虚拟dom示例对象为vm,不用的直接用document

iframe的使用

父盒子里写一个showContent函数接受数据,并进行操作

iframe的使用

2 刷新iframe的实现

在点击刷新时重新加载资源加上时间戳,避免缓存

iframe的使用

3 让iframe直接撑开父盒子

iframe的使用

直接引入

iframe的使用

解决方法

当iframe加载完毕再给iframe 设高

iframe的使用

这是又出现了一个问题高度总相差几像素,还是会出现滚动条

解决办法

iframe src资源界面最外层盒子给它样式:border:1px solid transparent;即可

相关文章:

  • 2021-05-21
  • 2021-08-01
  • 2022-12-23
  • 2022-12-23
  • 2021-06-17
  • 2021-11-09
  • 2021-06-12
猜你喜欢
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案