p.89 부트스트랩 thead-dark적용이 안됩니다.
<link rel="stylesheet" href="{{ url_for('static', filename='bootstrap.min.css') }}">
<div class="container my-3">
    <table class="table">
        <thead>
        <tr class="thead-dark">
            <th>번호</th>
            <th>제목</th>
            <th>작성일시</th>
        </tr>
        </thead>
        <tbody>
        {% if question_list %}
        {% for question in question_list %}
        <tr>
            <td>{{ loop.index }}</td>
            <td>
                <a href="{{ url_for('question.detail', question_id=question.id) }}">{{ question.subject }}</a>
            </td>
            <td>{{ question.create_date }}</td>
        </tr>
        {% endfor %}
        {% else %}
        <tr>
            <td colspan="3">질문이 있습니다.</td>
        </tr>
        {% endif %}
        </tbody>
    </table>
</div>

question_list.html 파일에 책이랑 똑같이 코드를 작성했는데 localhost:5000/question/list/ 들어갔을 때 바로 나오는 화면에서
번호 제목 작성일시
라고 적혀있는 부분이 까맣게 안칠해져서 나오네요. 왜 이런걸까요..

coin6442 597

M 2021년 7월 22일 10:12 오전

목록으로
1개의 답변이 있습니다. 1 / 1 Page

다음 2가지를 확인해 보세요.

  1. 부트스트랩 버전 4.x 버전을 다운로드 받았는지. (책은 4.x 버전을 기준으로 설명합니다. 그런데 부트스트랩은 지금 5.x 버전대가 나와서 디폴트로 다운로드 하셨으면 아마 5.x 버전을 사용하셨을거 같네요.)

  2. 부트스트랩 파일 bootstrap.min.css 경로를 확인해 보세요.

박응용

2021년 7월 22일 6:53 오후

5.x버전 다운받고하니까 bootstrap 적용이 하나도 안되어서 4.6으로 다운받으니 적용이 되네요. 5.x버전대는 왜 안되는건진 여전히 의문.. - 은월님, 2022년 3월 14일 6:03 오후 추천 , 대댓글
@은월님 5.x 버전은 4.x와 차이가 많습니다. 서로 호환이 안됩니다. - 박응용님, 2022년 3월 14일 6:08 오후 추천 , 대댓글
아 두 버전 차이가 많군요 감사합니다 - 은월님, 2022년 3월 14일 8:04 오후 추천 , 대댓글