设置子内容持有人为浮动和固定 [英] Setting Child Contentholder with both Floating and Fixed
本文介绍了设置子内容持有人为浮动和固定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个母版页,其中有一个用于子页的contentplace支架.该contentplace支架位于面板中,该面板启用了滚动条,并且该表单设置为无滚动条.
现在,我有一个子页面,整个内容UI都在滚动(显然).但我想将此区域设置为固定和滚动.这样子就是我在子页面上所做的:
Hi,
I have master page where I have one contentplace holder for child pages. This contentplace holder is in a Panel which is scroll bar enabled and the form is set as no scroll bar.
Now, I have a child page and in that whole content UI is scrolling (obviously). But I want to set this area as both fixed and scrolling. Like this is what I have done in child page:
<asp:Content ID="MainChildContent" ContentPlaceHolderID="ContentPlaceHolder3"
runat="server">
<asp:Panel ID="Panel1" runat="server" ScrollBars="None">
<table style="width: 100%">
<tr>
<td align="center" nowrap="nowrap" style="border: thin dotted #FF00FF">
<asp:Label ID="lblStatusMsg" runat="server" ForeColor="#000066" BorderStyle="None"
Font-Names="Andalus" Font-Size="X-Small"></asp:Label>
</td>
</tr>
</table>
</asp:Panel>
<asp:Panel ID="Panel1" runat="server" ScrollBars="Auto">
<tr>
<td align="center" nowrap="nowrap" style="border: thin dotted #FF00FF">
<asp:Label ID="lblMsg" runat="server" ForeColor="#000066" BorderStyle="None"
Font-Names="Andalus" Font-Size="X-Small"></asp:Label>
</td>
</tr>
</asp:Panel>
</asp:Content>
但这对我不起作用.我该如何实现?
But this is not working for me. How can I achive this?
推荐答案
^ ]文章可能会对您有所帮助.
This[^] article might help you.
这篇关于设置子内容持有人为浮动和固定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文