글작성 미리보기시 이미지 호출로인한 페이지 리로드 이슈 개선, css적용하여 이미지지 div넘어가는 이슈 개선
All checks were successful
Build And Test / build-and-push (push) Successful in 4m22s
All checks were successful
Build And Test / build-and-push (push) Successful in 4m22s
This commit is contained in:
8
components/static/components/css/style.css
Normal file
8
components/static/components/css/style.css
Normal file
@ -0,0 +1,8 @@
|
||||
/* 이미지가 div 크기 넘지 않도록 */
|
||||
#post-content img {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
display: block;
|
||||
/*margin: 0 auto; (선택) 가운데 정렬 */
|
||||
}
|
||||
|
@ -1,3 +1,4 @@
|
||||
{% load static %}
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
@ -10,6 +11,8 @@
|
||||
{% include "components/_favicon.html" %}
|
||||
<!-- Bootstrap CSS 추가 -->
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
|
||||
<!-- custom css 추가 -->
|
||||
<link rel="stylesheet" href="{% static 'components/css/style.css' %}">
|
||||
<!-- fontawesome 추가 -->
|
||||
<script src="https://kit.fontawesome.com/77d81e5d17.js" crossorigin="anonymous"></script>
|
||||
</head>
|
||||
|
Reference in New Issue
Block a user