如何在xsl中动态设置页面高度以调用iframe [英] how to set page height dyanmically to call in iframe in xsl
本文介绍了如何在xsl中动态设置页面高度以调用iframe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好..
如何设置页面高度dyanmically在xsl中调用iframe
谢谢,
Srishti
Hello..
how to set page height dyanmically to call in iframe in xsl
Thanks,
Srishti
推荐答案
Hi
首先使用jquery获取浏览器窗口的高度,并使用css将该高度传递给iframe 。
试试这样
Hi First get height of the browser window using jquery and pass that height using css to iframe.
Try like this
<script language="javascript" type="text/javascript">
FixWindowsHeightAndWidth{
winHight =
(window).height();
(window).height();
( '.center')。css({height:winHight +px});
}
window.onresize = FixWindowsHeightAndWidth;
< iframe src = .. / asptonet / asptonet1.asp?DestPage = .. / DynamicPages / immunization_annotation.aspx class = center frameborder = 0 width = 100% id = frm_immunizationname = frm_immunization SCROLLING = no > < / iframe >
('.center').css({ "height": winHight + "px" }); } window.onresize = FixWindowsHeightAndWidth; <iframe src="../asptonet/asptonet1.asp?DestPage=../DynamicPages/immunization_annotation.aspx" class="center" frameborder="0" width="100%" id="frm_immunization" name="frm_immunization" SCROLLING="no"></iframe>
尝试使用jquery获取浏览器或屏幕的窗口高度,并将该hegith传递给iframe使用Class或cssclass.So如果你调整浏览器,iframe高度也会根据高度调整大小。
问候
Aravind
Try to get window height for browser or screen using jquery and pass that hegith to iframe use Class or cssclass.So if u resize browser the iframe height also resize based on heigth.
Regards
Aravind
这篇关于如何在xsl中动态设置页面高度以调用iframe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文