커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
배경화면은 꼭 주소를 넣어야 하나요??
undefined주차
북마크
양*문
댓글
3
추천
0
조회수
8
조회수
8
답변 완료

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

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


배경 사진 넣을 때 인터넷에서 주소 찾아서 넣으면 계속 화질이 안좋아서 고화질로 다운 받아서 넣었거든요

그런데 깃헙에 배포해보니까 배경이 안따라왔더라고요

화면 캡쳐 화면에 보시면 글씨가 흰색이어서 빈 화면처럼 보이는데 글자만 떠 있습니다

어떻게 해야 할까요??



스파르타 즉문즉답




작성한 코드 및 에러 메세지

오류 발생 시, 작성한 코드 전체와 에러 메시지를 첨부해 주세요.

Tip 1) </> 아이콘을 눌러 코드박스를 만들어 보세요.

<!DOCTYPE html>
<html lang="en">


<head>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
    <title>나만의 동기부여 홈화면 만들기</title>


    <script src="index.js"></script>
    <script src="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("jon-tyson-IXyQ2ySnKAI-unsplash.jpg");
            background-position: center left;
            background-size: 1550px;


            color: rgba(255, 255, 255, 0.642);
        }


        .time {
            font-size: 100px;
            font-weight: bold;
        }


        .greeting {
            font-size: 50px;
        }


        .todo {
            font-size: 25px;
        }


        .author {
            font-size: 10px;
            font-style: italic;
        }


        .main {
            width: 100vw;
            height: 80vh;


            display: flex;
            flex-direction: column;
            align-items: left;
            justify-content: center;
        }


        .quote {
            width: 100vw;
            height: 15vh;


            display: flex;
            flex-direction: column;
            align-items: flex-end;
            justify-content: center;
        }
    </style>


    <script>
    </script>
</head>


<body>
    <div class="main">
        <div id="time" class="time">12:19</div>
        <div class="greeting">WORK WORK WORK</div>
        <div class="todo"> •  studying Python</div>
        <div class="todo"> •  studying UXUI</div>
        <div class="todo"> •  sell my emoticon</div>
        <div class="todo"> •  work at Starbucks</div>
    </div>
    <div class="quote">
        <div id="content" class="content">명언의 내용</div>
        <div id="author" class="author">- 명언의 저자 -</div>
    </div>
</body>


</html>

Tip 2) Ctrl+A(맥의 경우 Command+A) 단축키로 코드를 한 번에 선택할 수 있어요!




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