height:100% 在asp.net
谁能帮我看看这段代码有什么问题?去掉form标签,就能height 100%,只要有form,就出问题
我其实想做的东西很简单,就是左边是导航栏,右面是内容页,导航栏和内容页都有自己的scroll bar,然后永远是100%高度,但是在asp。net的页面就是不行,我试了把html,body,form,div,table,tr,td都设成style:height 100%;,还是不行,请各位高手指点,谢谢
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Test2.aspx.vb" Inherits="Test2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<style type="text/css">
body, td, table, div, html
{
font-family: arial, verdana, helvetica, monospace;
color: #000080;
font-size: small;
height: 100%;
width: 100%;
}
form
{
height: 100%;
border: 0;
margin: 0px auto;
margin-top: 0px;
margin-left: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<div style="height: 100%; background-color: lime">
sdaafsdf
</div>
</form>
</body>
</html>