커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
Button:hover 질문
undefined주차
북마크
문*민
댓글
5
추천
0
조회수
10
조회수
10
답변 완료

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

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


파이참에서 기본 제공 미리보기로 해서 확인하면 버튼에 마우스가 올라갔을때 테두리가 두꺼워지는 기능이 잘 작동되는데

크롬으로 열어서 보면 해당 기능이 동작을 안하는데 왜 그런걸까요?



스파르타 즉문즉답

위 이미지 : 파이참내에서 미리보기

스파르타 즉문즉답

위 이미지 크롬에서 실행했을때


작성한 코드 및 에러 메세지

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

    <style>
        .mytitle{
            background-image: url("https://movie-phinf.pstatic.net/20210715_95/1626338192428gTnJl_JPEG/movie_image.jpg");
            width: 100%;
            height: 250px;

            background-position: center;
            background-color: white;
            background-size: cover;

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

            color : white;
        }

        .mytitle > button {
            border-radius: 50px;
            border: 1px solid white;

            height: 50px;
            width: 200px;
            margin-top: 10px;

            background-color: transparent;
            color : white;
        }

        .mytitle > button:hover {
            border: 2px solid white;

        }
    </style>

</head>

<body>
    <div class="mytitle">
        <h1>내 생에 최고의 영화들</h1>
        <button>영화 기록하기</button>
    </div>
</body>

</html>

요!




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