[점프투장고] 03-10 댓글 기능 구현 후 CSS 적용 안되는 이유?
안녕하세요, 책보며 열심히 따라하고 있는 코린이 입니다.
03-10까지 완료하였고, 댓글 관련 잘 작동을 합니다.
그런데 css 적용이 안되는 것 같습니다.
style.css 내에 아래와 같이 작성하였고
.comment {
border-top:dotted 1px #ddd;
font-size:0.7em;
}
base.html 내에도 css를 잘 참조하고 있습니다.
<!-- pybo CSS -->
<link rel="stylesheet" type="text/css" href="{% static 'style.css' %}">
혹시 다른부분 확인해 봐야 될 곳이 있을까요?
uno 님 692
2021년 2월 5일 4:48 오후
1개의 답변이 있습니다. 1 / 1 Page
question_detail.html 에서 아래 div class에 "comment"가 추가되었는지 확인해 보세요.
<div class="comment py-2 text-muted"> <!-- 이 부분에 comment 추가 확인 -->
<span style="white-space: pre-line;">{{ comment.content }}</span>
<span>
- {{ comment.author }}, {{ comment.create_date }}
{% if comment.modify_date %}
(수정:{{ comment.modify_date }})
{% endif %}
</span>
{% if request.user == comment.author %}
<a href="{% url 'pybo:comment_modify_question' comment.id %}" class="small">수정</a>,
<a href="#" class="small delete"
data-uri="{% url 'pybo:comment_delete_question' comment.id %}">삭제</a>
{% endif %}
</div>
박응용 님
2021년 2월 5일 7:54 오후