03/21 3차 자바스크립트 과제

Noh Sinyoung·2023년 3월 21일
0

과제

목록 보기
3/27
<!DOCTYPE html>
<html lang="ko">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div class="mint">
        <h1>민트</h1>
    </div>
    <div class="blue">
        <h1>블루</h1>
    </div>

    <script>
        let 민트박스
        민트박스 = document.querySelector(".mint")
        let 블루박스
        블루박스 = document.querySelector(".blue")

        민트박스.style.backgroundColor = "aquamarine"
        민트박스.style.width = "500px"
        민트박스.style.height = "200px"
        블루박스.style.backgroundColor = "skyblue" 
        블루박스.style.width = "500px"
        블루박스.style.height = "200px"
    </script>

</body>
</html>

0개의 댓글