使用 Bootstrap 基本方式
把 css 粘贴到 title 之上
把 js 三行粘贴到 body 结束之前;
然后使用样式。
使用 html 片段的语法
{% include 'bootstrap/css.html' %}
{% include 'bootstrap/navBar.html' %}
CSS 文件使用
创建css文件: blog/static/blog/main.css
在网页首行: {% load static %}
使用CSS的行:
<link rel="stylesheet" type="txt/css" href="{% static 'blog/main.css' %}">