zoukankan      html  css  js  c++  java
  • 【转】给TD添加滚动条的方法

    TD本身不允许出现滚动条,而会总动撑大,所以要想加滚动条需要另外在TD内添加一个容器如:DIV。

    例子:

    <table style=" 450px; height: 360px">
                <tr>
                    <td valign="top" style="border:solid 1px gray"><div style="overflow-y:scroll;height:330px;">
                        <asp:TreeView ID="TreeView1" runat="server" ExpandDepth="1" OnSelectedNodeChanged="TreeView1_SelectedNodeChanged" ShowCheckBoxes="None" ShowLines="true">
                        </asp:TreeView></div>
                    </td>
                    <td valign="top" style="border:solid 1px gray;"><%--<div style="overflow-y:scroll;height:330px;">--%>
                        <br />
                        <asp:Label ID="Label1" runat="server" Text="请选择人员:"></asp:Label><br />
                        <asp:Panel ID="Panel1" runat="server" ScrollBars="Auto" Height="300px">
                            <asp:RadioButtonList ID="RadioButtonList1" runat="server">
                            </asp:RadioButtonList>
                        </asp:Panel>
                        <%--</div>--%></td>
                </tr>
                <tr>
                    <td align="center" colspan="2" valign="top" style="height: 30px">
                        <input id="Button1" type="button" value="确定" onclick="goback();" /></td>
                </tr>
            </table>

  • 相关阅读:
    设计模式了解
    三次握手
    网络安全常见术语
    threading.Thread 子线程强制停止
    黑帽SEO入门
    Chrome(谷歌)浏览器永久关闭恢复页面提示框(记录)
    FTP文件夹错误:【打开FTP服务器上的文件夹时发生错误。请检查是否有权限访问该文件夹】
    jenkins启动失败,查看状态提示active(exited)
    jenkins打包vue项目报错-未解决
    jenkins迁移报错处理
  • 原文地址:https://www.cnblogs.com/jerome-rong/p/3159979.html
Copyright © 2011-2022 走看看