如何获取更新面板以占据父元素的全部高度 [英] How do i get an update panel to occupy full height of parent element
本文介绍了如何获取更新面板以占据父元素的全部高度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在updatepanel的div标签内有一个iframe标签.我已将div标签和iframe的高度设置为100%,但控件仍未占据整个高度.
我尝试将更新面板放在面板控件中,但是它不起作用.任何帮助将不胜感激.
PS.整个内容都放在ContentPlaceHolder
中
这是我的代码
< asp:Content ID = " ContentPlaceHolderID = " runat = " 服务器" " runat = " UpdateMode = " >
< ContentTemplate>
< div style = " >
< MP3:PseudoMP3 ID = " runat = " Visible = " >
</ MP3:伪MP3 >
< asp:文字ID = " runat = " Visible = " > </ asp:Literal >
< iframe id = " runat = " 服务器" visible = false" span> height = " width = " 100%"
frameborder = " > </ iframe >
</ div >
</ ContentTemplate >
</ asp:UpdatePanel >
</ asp:Content >
解决方案
阅读页面源代码,以查看updatepanel是否在客户端上发出任何内容及其内容,然后使用CSS对其进行大小调整.
I have an iframe tag inside a div tag inside an updatepanel. I have set the height of the div tag and the iframe to 100% but the control still doesn''t occupy the whole height.
I have tried putting the update panel inside a panel control but it doesn''t work. Any help would be greatly appreciated.
PS. the whole thing is put inside a ContentPlaceHolder
here''s my code
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<asp:UpdatePanel ID="updPanel1" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<div style="height: 100%;">
<MP3:PseudoMP3 ID="mp3Player" runat="server" Visible="false">
</MP3:PseudoMP3>
<asp:Literal ID="videoPlayer" runat="server" Visible="false"></asp:Literal>
<iframe id="htmlFrame" runat="server" visible="false" height="100%" width="100%"
frameborder="0"></iframe>
</div>
</ContentTemplate>
</asp:UpdatePanel>
</asp:Content>
解决方案
Read the page source to see if updatepanel emits any content on the client, and what it is, then size it with CSS.
这篇关于如何获取更新面板以占据父元素的全部高度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文