본문 바로가기
Web Program/Asp.net Lecture

Gridview header footer 고정하기

by 현이빈이 2009. 5. 15.
반응형

header style css 추가


.HeaderFreezing
{
background-color:White;
position:relative ;
top: expression(this.offsetParent.scrollTop);
z-index: 10;
}

.FooterFreezing
{
background-color:White;
position:relative;
bottom: expression(this.offsetParent.scrollHeight - (this.offsetParent.scrollTop + this.offsetParent.offsetHeight));
z-index: 10;
}

.FreezingFooter {
position:relative;
bottom: expression((this.offsetParent.offsetWidth != this.offsetParent.clientWidth) ? (this.offsetParent.scrollHeight - (this.offsetParent.scrollTop + this.offsetParent.offsetHeight)) : 0);
background-color:White;
z-index: 200;
}

반응형