UserWiki:Yuc: 두 판 사이의 차이

Yuc (토론 | 기여)
편집 요약 없음
Yuc (토론 | 기여)
문서를 비움
태그: 비우기
 
(같은 사용자의 중간 판 33개는 보이지 않습니다)
1번째 줄: 1번째 줄:
<html lang="ko">
<head>
    <meta charset="이건하는역할이뭐냐">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>이게팝업이냐</title>
    <style>
        /* 이게배경이냐 */
        .popup-overlay {
            display: block; /* 기본값은 보이도록 설정 */
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 1000;
        }
        /* 나는 팝업 박스를 */
        .popup-content {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 300px;
            background: white;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
            padding: 20px;
            text-align: center;
        }
        /* 이건 닫기 버튼 이다 */
        .close-btn {
            background: #007BFF;
            color: white;
            border: none;
            padding: 10px 20px;
            cursor: pointer;
            border-radius: 5px;
        }
        .close-btn:hover {
            background: #000;
        }
    </style>
</head>
<body>
    <!-- 팝업 -->
    <div class="popup-overlay" id="popup">
        <div class="popup-content">
            <h2>팝업제목을적을수있는곳</h2>
            <p>얘왤케이마빡이넓음</p>
            <button class="close-btn" onclick="closePopup()">나는분명닫기버튼을</button>
        </div>
    </div>


    <script>
        // 팝업을 닫도록
        function closePopup() {
            document.getElementById("popup").style.display = "none";
        }
    </script>
</body>
</html>

2025년 1월 9일 (목) 23:36 기준 최신판