最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - get parent frame height with jQuery - Stack Overflow

programmeradmin1浏览0评论

I want to get the height of parent frame with jQuery.

It's my orginal script

var iframeElement = parent.document.getElementById('FrmPatient'); 
iframeElement.style.height = 170;

I want to change this script to jQuery style. How to get that?

I want to get the height of parent frame with jQuery.

It's my orginal script

var iframeElement = parent.document.getElementById('FrmPatient'); 
iframeElement.style.height = 170;

I want to change this script to jQuery style. How to get that?

Share Improve this question asked Aug 11, 2010 at 7:08 Pyae Phyoe SheinPyae Phyoe Shein 13.8k47 gold badges152 silver badges243 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 3

You could try this:

$("#FrmPatient", parent.document).css("height", 170);
$('FrmPatient').parent().css('height', '170px');
发布评论

评论列表(0)

  1. 暂无评论