커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
url 403 문제 다시 질문 드립니다.
undefined주차
북마크
최*호
댓글
1
추천
0
조회수
7
조회수
7
답변 완료
<!doctype html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet"
          integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js"
            integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM"
            crossorigin="anonymous"></script>

    <title>아이유 팬명록</title>
    <link href="https://fonts.googleapis.com/css2?family=Jua&display=swap" rel="stylesheet">

    <style>
        * {
            font-family: 'Jua', sans-serif;
        }
        .mytitle {
            height: 200px;
            width: 100%;
            background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("https://postfiles.pstatic.net/MjAyMTA5MTBfMjAz/MDAxNjMxMjc2MDM2ODEz.Itsuh0XeHQNHkhPLbXmEpKtonCexNjBxfuNQY0r99hIg.ADFL9HOfX-2dO-yhzhve92d5qqGGktpL1anBR94EQ70g.JPEG.smotherguy/Sleep_Desktop23.jpg?type=w966");
            background-position: center;
            background-size: cover;
            color: white;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }

        .mypost {
            max-width: 500px;
            width: 95%;
            margin: 20px auto 0px auto;
            box-shadow: 0px 0px 3px 0px gray;
            padding: 20px;
        }

        .mybtn {
            margin-top: 10px;
        }
        .mycards{
            max-width: 500px;
            width: 95%;
            margin: auto;
        }
        .mycards > .card {
            margin-top: 10px;
        }
    </style>
</head>

<body>
    <div class="mytitle">
        <h1>아이유 팬명록</h1>
    </div>

    <div class="mypost">
        <div class="form-floating mb-3">
            <input type="text" class="form-control" id="floatingInput" placeholder="name@example.com">
            <label for="floatingInput">닉네임</label>
        </div>
        <div class="form-floating">
                <textarea class="form-control" placeholder="Leave a comment here" id="floatingTextarea2"
                          style="height: 100px"></textarea>
            <label for="floatingTextarea2">응원댓글</label>
        </div>
        <div class="mybtn">
            <button type="button" class="btn btn-dark">응원 남기기</button>
        </div>
    </div>

    <div class="mycards">
        <div class="card">
            <div class="card-body">
                <blockquote class="blockquote mb-0">
                    <p>새로운 앨범 너무 멋져요!</p>
                    <footer class="blockquote-footer">호빵맨</cite>
                    </footer>
                </blockquote>
            </div>
        </div>
        <div class="card">
            <div class="card-body">
                <blockquote class="blockquote mb-0">
                    <p>새로운 앨범 너무 멋져요!</p>
                    <footer class="blockquote-footer">호빵맨</cite>
                    </footer>
                </blockquote>
            </div>
        </div>
        <div class="card">
            <div class="card-body">
                <blockquote class="blockquote mb-0">
                    <p>새로운 앨범 너무 멋져요!</p>
                    <footer class="blockquote-footer">호빵맨</cite>
                    </footer>
                </blockquote>
            </div>
        </div>
    </div>
</body>

</html>

다시 작성한 코드입니다. 숙제용 코드라 제출 직전이구요.

답변에 background-position: center; 에서 r이 빠진 상태인 backgound-position: center;로 되어있다고 해주셨는데,

해당 부분은 제가 답변 전에 확인 후 적용한 상태입니다. ㅠㅠ

그런데도 저는 여전히 파이참에서 실행했을 때 이미지 403이 뜹니다.

스파르타 즉문즉답

F12를 눌러 오류를 확인했을 때에는 위와 같습니다.


파일이 저장된 디렉토리로 이동하여 파일을 직접 클릭하여 실행하였을 때에는 이미지가 잘 보이는데,

왜 파이참으로 실행했을 때에만 문제가 되는지 모르겠습니다.

이 상태로 숙제를 제출해도 괜찮은 것인지도 의문이고요.

답변 부탁드리겠습니다 ㅠㅠ

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