Добрый день! Ни как не получается сделать чтобы нижний колонтитул всегда был внизу.
Код страницы:
| Код | <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Test.aspx.cs" Inherits="Test" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<link href="StyleSheet.css" rel="stylesheet" type="text/css" />
<html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> </head> <body> <form id="form1" runat="server"> <div> <asp:Label ID="Label1" runat="server" Text=""></asp:Label> <br /> </div> <asp:Panel ID="PanelBattomer" CssClass="PanelBattomer" runat="server" Height="52px"> Нижний колонтитул </asp:Panel> </form> </body> </html>
|
код css :
| Код | .PanelBattomer { position: absolute; background-color: #99CCFF; bottom: 0px; left: 0px; width: 100%; }
|
Почему когда исполняется код
| Код | using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls;
public partial class Test : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { for (int i = 0; i < 100; i++) { Label1.Text += i.ToString()+"<br />"; } } }
|
он пробивает мой колонтитул, как сделать чтобы не зависимо от размера страницы мой колонтитул всегда был в самом низу ? |