开发者

get parent frame height with jQuery

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

It's my orginal script

var iframeElement = parent.document.getElementById('FrmPatient'); 
iframeElement.style.hei开发者_运维百科ght = 170;

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


You could try this:

$("#FrmPatient", parent.document).css("height", 170);


$('FrmPatient').parent().css('height', '170px');
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜