나는이 작업을 시도했지만 무시한 것처럼 보입니다. 나는 당신이 이것을 원한다면 부모 객체가 100 %인지를 확인해야한다는 몇 가지 기사를 발견했다. 나는 다음을 가지고있다 :HTML 설정 표 높이를 100 %로
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server" style="height:100%">
<title>Untitled Page</title>
<asp:ContentPlaceHolder id="head" runat="server">
</asp:ContentPlaceHolder>
<style type="text/css">
.MasterStyle
{
width: 98%;
height: 100%;
}
.ContentStyle
{
width: 100%;
}
.TableStyle
{
width: 133px;
height: 100%;
}
</style>
</head>
<body class="MasterStyle">
<form id="frmMaster" runat="server">
<div class="ContentStyle">
<asp:Label runat="server" Text="My Site Name" Font-Bold="true" Font-Names="MS-Sans"
Style="text-align:right" Width="100%" />
<br />
</div>
<hr />
<table style="width:100%; height:100%" border="true">
<tr>
<td class="TableStyle" style="height:100%">
나는 테이블 주위에 경계선이있어서 높이가 채워지지 않는다는 것을 알 수있다. 아무도 내가 왜 100 % 신장을 얻지 못하고 있다고 말할 수 있습니까?
감사합니다. 양식 및 html 설정. 그러나 html의 스타일 속성이 없다는 컴파일 경고 메시지가 표시됩니다. –