커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
1-5 현재 시간 적용 및 새로 고침 명언바뀜이 실행되지 않아요 2
undefined주차
북마크
김*은
댓글
3
추천
0
조회수
16
조회수
16
답변 완료

* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.

* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.


아까 질문을 드렸었는데 실수로 문제해결? 버튼을 잘못눌러 다시 질문하게 됬어요

전 질문에서 간략히 css에서 선택자라는 문법이 있어 #을 넣어주어야 문제가 해결된다 하셨는데 현재 그렇게 코드를 작성했는데도 불구하고 실행이 되지 않아 다른 문제가 있나 궁금합니다




스파르타 즉문즉답




<!DOCTYPE html>

<html lang="en">


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

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js">

    </script>

    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet"

        integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">

    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.8.0/font/bootstrap-icons.css">

    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"

        integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p"

        crossorigin="anonymous"></script>

    <title>모멘텀앱 - 따라만들기</title>


    <script> scr="index.js"</script>

    <style>

        @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500&display=swap');


        * {

            font-family: 'Poppins', sans-serif;

        }


        body {

            background-image: url("https://th.bing.com/th/id/R.1648c22ce208cfc2f15c1fe6ebb7fd85?rik=6DF1COKWnW4lpw&riu=http%3a%2f%2fpostfiles6.naver.net%2fMjAxNzA0MjVfMTc1%2fMDAxNDkzMDg5ODcyNTc5.Vj02bYI1HUILdB4dK4CWv_NhH8JI74G0hEJrGFkfhzgg.yo-_8uEPziO7dNYdt-cWIl0IZ95_kZJWxL4N5aiftpkg.JPEG.ctkorea1%2fti325007757.jpg%3ftype%3dw1&ehk=JSdf0hzisz8Sns0PSRwxYkldtGf5EvI8fh01LnwicMI%3d&risl=&pid=ImgRaw&r=0&sres=1&sresct=1");

            background-position: center;

            color: white;

        }


        #time{

            font-size: 80px;

            font-weight: bold;

        }


        .greeting {

            font-size: 50px;

        }


        .todo{

            font-size: 30pt;

        }


        #author {

            font-size: 25px;

            font-style: italic;

        }


        .main {

            width: 100vw;

            height: 80vh;


            display: flex;

            flex-direction: column;

            align-items: center;

            justify-content: center;

        }


        .quote {

            width: 100vw;

            height: 20vh;


            display: flex;

            flex-direction: column;

            align-items: center;

            justify-content: center;

        }

    </style>

    <script>

    </script>

</head>


<body>

    <div class="main">

        <div  id="time" class="time">12:00</div>

        <div class="greeting">hello, Yungsang!</div>

        <div class="todo">주 3회 운동하기!</div>

    </div>

    <div class="quote">

        <div id="author" class="author">- 명언의 저자 -</div>

        <div id="content" class="content">" 명언의 내용 "</div>

    </div>

</body>


</html>


취소
 공유
취소
댓글 0
댓글 알림
나의얼굴