블로그 이미지
Magic_kit
study 관련자료를 한곳으로 자기 개발 목적으로 재태크 재무 관리 목적으로 일상생활의 팁을 공유 하기 위하여 블로그를 개설 하였습니다.

calendar

1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
반응형

Category

Recent Post

Recent Comment

Archive

2009. 7. 29. 18:41 .Net Project/CSS 2.0
반응형


                                            →


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
              "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>23.레이어</title>
</head>
<body>

<div style="background-color:Silver; width:100px ; height:100px ; position:absolute; z-       index:0; left:150px ; top:120px ; ">
       1번 영역(레이어)
</div>

<div style="background-color:Yellow; width:100px ; height:100px ;position:absolute;
       z-index:0; left:120px ; top:100px ;  ">
       2번 영역(레이어)
</div>

<div style="background-color:Red;  width:100px ; height:100px;
       position:relative; z-index:10; overflow:scroll; white-space:nowrap; ">
       3번 영역(레이어) 안녕하세요 만나서 반갑습니다
</div>

<div style="background-color:Blue;  width:100px ;
  height :100px ;
  overflow:hidden;
  white-space:nowrap;">
  4번 영역(레이어)
</div>

<div id="five" style="background-color:Green;  width:100px ;
      height :100px ;
      visibility:hidden;
      display:block;
      left:0px; top:50px ;">
5번 영역(레이어) </div>

<script type="text/javascript">

 function ShowFive() {
 
 if (document.getElementById("five").style.visibility != "visible") {
   document.getElementById("five").style.visibility = "visible";
   document.getElementById("five").style.display = "block";
  }else
   {
    document.getElementById("five").style.visibility = "hidden";
    document.getElementById("five").style.display = "none";
   }
 }

</script>

 <input type="button"value="5번 레이어 보이기" onclick="ShowFive();" />

</body>
</html>

반응형

'.Net Project > CSS 2.0' 카테고리의 다른 글

CSS2.0 관련 속성정리  (1) 2009.07.29
22장 태그로 레이아웃 설정  (1) 2009.07.29
21장 이미지 스타일  (0) 2009.07.29
20장 목록관련스타일  (0) 2009.07.29
18장 ScrollBarStyle  (0) 2009.07.28
posted by Magic_kit