본문 바로가기
html

가운데뜨는 레이어창

by 포샵질 2017. 2. 1.

<!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>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

 <head>

  

        <title>블루비</title> 

        <style> 

        .black_overlay{ 

            display: none; 

            position: absolute; 

            top: 0%; 

            left: 0%; 

            width: 100%; 

            height: 1500px; 

            background-color: black; 

            z-index:1001; 

            -moz-opacity: 0.8; 

            opacity:.80; 

            filter: alpha(opacity=80); 

        } 

        .white_content { 

            display: none; 

            position: absolute; 

            top: 25%; 

            left: 25%; 

            width: 50%; 

            height: 50%; 

            padding: 16px; 

            border: 16px solid orange; 

            background-color: white; 

            z-index:1002; 

            overflow: auto; 

        } 

    </style> 

    </head> 

    <body> 

        <p> <a href = "javascript:void(0)" onclick = "document.getElementById('light').style.display='block';document.getElementById('fade').style.display='block'">효과보기</a></p> 

        <div id="light" class="white_content">내용을 입력하세요^^ <a href = "javascript:void(0)" onclick = "document.getElementById('light').style.display='none';document.getElementById('fade').style.display='none'">닫기</a></div> 

        <div>


</body>

</html>



'html' 카테고리의 다른 글

스르륵 열리는 공지창  (0) 2017.02.01
a href 링크시 페이지 고정하기  (0) 2017.02.01
html 가이드  (0) 2017.02.01
alt, title, longdesc 정의  (0) 2017.02.01
높이100% 브라우져  (0) 2017.02.01