css fiexed

Tip 2011. 3. 31. 20:05 |
<style type="text/css">
.fixed-top    /* position fixed Top    */{position:fixed;bottom:auto;top:0px;}
.fixed-bottom /* position fixed Bottom */{position:fixed;bottom:0px;top:auto;}
.fixed-left   /* position fixed Left   */{position:fixed;right:auto;left:0px;}
.fixed-right  /* position fixed right  */{position:fixed;right:0px;left:auto;}

* html,* html body   /* IE6 Fixed Position Jitter Fix */{background-image:url(about:blank);background-attachment:fixed;}
* html .fixed-top    /* IE6 position fixed Top        */{position:absolute;bottom:auto;top:expression(eval(document.documentElement.scrollTop));}
* html .fixed-right  /* IE6 position fixed right      */{position:absolute;right:auto;left:expression(eval(document.documentElement.scrollLeft+document.documentElement.clientWidth-this.offsetWidth)-(parseInt(this.currentStyle.marginLeft,10)||0)-(parseInt(this.currentStyle.marginRight,10)||0));}
* html .fixed-bottom /* IE6 position fixed Bottom     */{position:absolute;bottom:auto;top:expression(eval(document.documentElement.scrollTop+document.documentElement.clientHeight-this.offsetHeight-(parseInt(this.currentStyle.marginTop,10)||0)-(parseInt(this.currentStyle.marginBottom,10)||0)));}
* html .fixed-left   /* IE6 position fixed Left       */{position:absolute;right:auto;left:expression(eval(document.documentElement.scrollLeft));}
</style>

<div class="fixed-bottom" style="text-align:center; width:100%; left:0;"> <img src="
imagename.gif" border="0"> </div> 

'Tip' 카테고리의 다른 글

IE8 Textarea Bug  (0) 2011.06.20
IE9 스마트 에디터 상단 짤림  (2) 2011.05.31
크로스도메인 쿠키문제  (0) 2011.01.21
MySql insert select  (0) 2010.11.06
div가운데 정렬  (0) 2010.10.09
Posted by 기계식키보드
:
Calendar가 젤 어렵드라 난

public static String getMondayFromDay(String yyyymmdd) {
int yyyy = Integer.parseInt(yyyymmdd.substring(0, 4));
int mm = Integer.parseInt(yyyymmdd.substring(4, 6)) - 1;
int dd = Integer.parseInt(yyyymmdd.substring(6, 8));
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
String setDate = ""; 
Calendar calendar = Calendar.getInstance();
calendar.set(yyyy, mm, dd);
setDate = formatter.format(calendar.getTime());
int yoil = calendar.get(Calendar.DAY_OF_WEEK);
System.out.println("입력날짜:"+setDate + ", 요일:"+yoil);
int gap = 0;
int[] idx = {1, 2, 3, 4, 5, 6, 7};
for(int i = 0; i < idx.length; i++) {
if( yoil != 2 && yoil == idx[i] ) {
gap = i*2-yoil;
gap = 0-gap;
}
}
calendar.add(Calendar.DATE, gap);
setDate = formatter.format(calendar.getTime());
yoil = calendar.get(Calendar.DAY_OF_WEEK);
System.out.println("입력날짜:"+setDate + ", 요일:"+yoil);
return "";
}

'Java' 카테고리의 다른 글

자바 컴파일  (0) 2012.12.19
HtmlCleaner  (0) 2012.06.18
spring3 ibatis log 안나옴  (0) 2011.12.23
log4j.properties  (0) 2010.08.15
Eclipse 실행에러 및 버벅거림  (0) 2010.07.18
Posted by 기계식키보드
:
http://elco.tistory.com/entry/%ED%9A%8C%EC%9B%90%EA%B0%80%EC%9E%85-%ED%94%84%EB%A1%9C%EC%84%B8%EC%8A%A4%EB%A5%BC-%EC%8B%AC%ED%94%8C%ED%95%98%EA%B2%8C-%EB%A7%8C%EB%93%9C%EB%8A%94-17%EA%B0%80%EC%A7%80-%EB%B0%A9%EB%B2%95

Posted by 기계식키보드
: