正文:
$("iframe").contents().find("body").html(); //iframe里面页面body的内容
$("iframe").contents().find("body").height(); //iframe里面页面body的高度
参考来源:
Jquery如何获取iframe里面body的html呢?_百度知道
https://zhidao.baidu.com/question/570677614.html?qq-pf-to=pcqq.c2c
本文介绍使用jQuery获取iframe内部body元素的HTML内容及高度的方法。通过调用.contents()和.find()方法,可以轻松访问iframe中body的具体信息。
正文:
$("iframe").contents().find("body").html(); //iframe里面页面body的内容
$("iframe").contents().find("body").height(); //iframe里面页面body的高度
参考来源:
Jquery如何获取iframe里面body的html呢?_百度知道
https://zhidao.baidu.com/question/570677614.html?qq-pf-to=pcqq.c2c
转载于:https://www.cnblogs.com/huashengweilong/p/10807393.html

被折叠的 条评论
为什么被折叠?