커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
1-6 css부분 따라하고 있는데요 이미지가 안나옵니다;;
undefined주차
북마크
최*심
댓글
3
추천
0
조회수
18
조회수
18
답변 완료
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>로그인페이지</title>
    <style>
        .mytitle {
            background-color: green;

            width: 300px;
            height: 200px;

            color: white;

            text-align: center;

            background-image: url("https://www.ancient-origins.net/sites/default/files/field/image/Agesilaus-II-cover.jpg")
            background-size: cover;
            background-position: center;
        }
    </style>
</head>
<body>
    <div class="mytitle">
        <h1>로그인 페이지</h1>
        <h5>아이디, 비밀번호를 입력해주세요</h5>
    </div>
  <p>ID: <input type="text"/></p>
  <p>PW: <input type="text"/></p>
  <button>로그인하기</button>
</body>
</html> 




코드는 위와 같은데요 background 부분에서 이미지가 적용이 안되고 초록색으로 나오는데 왜 그런걸까요..?ㅜㅜ

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