양식 표 태그로 둘러싸인 데이터 표가 있습니다. 페이지 하단에는 고정 된 꼬리말이 있습니다.테이블이 비어있을 때 html 바닥 글이 오른쪽으로 이동합니까?
표가 비어있는 경우 (표 머리글 만 표시) 전체 바닥 글이 화면 오른쪽에서 절반 벗어나 이동합니다.
아이디어가 있으십니까?
<form action="/cgi-bin/Lib.exe" method=POST name="dd" ID="Form1">
<div id="yyy">
<table cellspacing="0" ID="Table1">
<thead>
<tr>
<th>Start</th>
<th>End</th>
</tr>
</thead>
<p><small><font face="Arial"><small>$DATA</small></font></small></p>
<tbody>
<tr>
<td><input type=radio name="begin" value="$START" ID="Radio0"> $START</td>
<td>$END <input type=radio name="end" value="$END" ID="Radio3"></td>
</tr>
<tr>
<td><input type=radio name="begin" value="$START" ID="Radio1"> $START</td>
<td>$END <input type=radio name="end" value="$END" ID="Radio4"></td>
</tr>
<tr>
<td><input type=radio name="begin" value="$START" ID="Radio2"> $START</td>
<td>$END <input type=radio name="end" value="$END" ID="Radio5"></td>
</tr>
</tbody>
</table>
</div>
<p><small><font face="Arial"><small>$DATA</small><strong></p>
</strong></font></small>
</form>
<div id="footer">
<div id="labfooter">
</div>
</div>
CSS의 :
#footer {
width:100%;
height:5em;
}
html>body #footer {
position:fixed;
bottom:0;
z-index:10; /* Prevent certain problems with form controls */
}
#header,
#footer {
color:#111;
background:#ddd;
text-align:center;
}
일부 예제 코드를 보여줄 수 있습니까? –
템플릿을 사용하여 –
어떤 브라우저? ff 3.0.7/xp로 작업 중입니다. –