![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
iframe
dongsdh
少熬夜,多运动,记得笑
展开
-
子页面修改它自己的src
var ur = 'a.html'; window.parent.document.getElementById("J_content").src=ur原创 2021-03-26 16:39:10 · 330 阅读 · 0 评论 -
原生监听子页面滚动
项目首页为普通页面导航条,和vue项目生成后拼起来的页面 父页面 // 供子页面调用 function isshowBartop(scrollTop){ //scrollTop为子页面滚动条的滚动的值 //如果scrollTop<100,回到顶部的按钮消失 if(scrollTop<100){ $('.jsgotop').fadeOut(); }e原创 2020-06-02 17:47:10 · 302 阅读 · 0 评论 -
iframe里面的内容有滚动条,且iframe高度以它为准及扩展
<style> #tAmMAPFtP4rFjcbO_context{ overflow: visible;//有滚动条的盒子 } </style> <script> function IFrameResize(){ setTimeout(function(){ let h = ...原创 2019-12-12 14:40:02 · 482 阅读 · 0 评论 -
iframe父子页面通信各种操作
父页面 <!DOCTYPE html> <html lang="zh"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta http-equiv="X...原创 2019-12-11 22:55:08 · 270 阅读 · 0 评论