Div中的自动控件滚动 [英] Auto Scroll of Controls in Div
问题描述
请帮我解决以下问题。
目前我有一个Div我在Div里面有一个Panel。
Hi,
Kindly help me to sort out this below issue.
Currently I have a Div and I have Panel inside Div.
<div id="Ord1">
<asp:Panel ID="pnlOrd1" runat="server">
Dynamic HTML Tables....
</asp:Panel>
</div>
现在我已经创建了dynamice表控件并添加到Panel中它位于Div(Div> Panel> Dynamic Tables)内。
如果动态表的数量超过5,那么我需要自动滚动一个talbes一个从左到右,间隔相等。
注意:我的页面将有4个分区,每个潜水将在分区内有分区。假设在Second Div中,如果动态表小于5,则不需要自动滚动。
谢谢和问候,
David。
Now I have created dynamice table controls and added to the Panel which is placed inside the Div( Div>Panel>Dynamic Tables).
If the number of dynamic tables is more than 5 then I need to auto scroll the talbes one by one from left to right with equal intervals.
Note: My Page will have 4 Divs and each dive will have Panel inside the Div. Suppose in Second Div if the dynamic tables is less than 5 there is no need of auto scroll to be done.
Thanks and Regards,
David.
推荐答案
您可以在div中使用带溢出属性的样式
Hi,
You can use style with overflow property in div
<div id="Ord1" style="overflow:auto;Height:250;width:250" >
<asp:Panel ID="pnlOrd1" runat="server">
Dynamic HTML Tables....
</asp:Panel>
</div>
这里我将高度和宽度固定为250px,当div内的控制交叉高度或宽度滚动时会自动出现其他消失
Here i fixed the height and width as 250px, when control inside the div cross the height or width scroll will automatically appears else disappear
这篇关于Div中的自动控件滚动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!