ASP.NET webform 布局

zhoudi007 2017-09-20 10:16:39
如何利用div 将一个页面分成 上下两部分,上面为100px,下面是将剩余部分填充满,如何实现啊
...全文
281 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
正怒月神 2017-09-20
  • 打赏
  • 举报
回复
移到web开发
shoppo0505 2017-09-20
  • 打赏
  • 举报
回复
可以使用Panel
  • 打赏
  • 举报
回复
这个跟 wenform 没有关系。知识点的范围要搞对。
  • 打赏
  • 举报
回复
<%@ Page Language="C#" AutoEventWireup="true" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <style>
        html, body, form {
            height: 100%;
            overflow: auto
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <table style="height: 100%; width: 100%" border="1">
            <tr>
                <td style="border: 1px solid red; min-height: 400px"></td>
            </tr>
            <tr>
                <td style="border: 1px solid blue; text-align:center">
                    拖动浏览器窗口边框,看看效果
                </td>
            </tr>
        </table>
    </form>
</body>
</html>

61,112

社区成员

发帖
与我相关
我的任务
社区描述
层叠样式表(英文全称:Cascading Style Sheets)是一种用来表现HTML(标准通用标记语言的一个应用)或XML(标准通用标记语言的一个子集)等文件样式的计算机语言。
社区管理员
  • HTML(CSS)社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧