---恢复内容开始---

1:在app下建立static文件夹并且放入bootstrap文件包以及一个写好的css文件style.css。文件目录如下:

pd的django To Do List教程-----3:模板的建立

  style.css代码:

 

 1 .form-control {
 2 display: inline-block;
 3 }
 4 .add_button {
 5 margin: 10px 0px 10px 0px;
 6 }
 7 .checkbox {
 8 margin-top: 20px;
 9 }
10 .completed_item {
11 text-decoration: line-through;
12 }
13 h1 {
14 display: inline-block;
15 color: #292b33;
16 }
17 body {
18 background-color: #f6f6f6;
19 }
20 .text_holder {
21 display: block;
22 max-width: 100%;
23 word-wrap: break-word;
24 }
25 #main {
26 margin-top: 150px;
27 background-color: #ffffff;
28 border-radius: 5px;
29 width: 50%;
30 border: 1px solid #545454;
31 }
View Code

相关文章:

  • 2021-08-25
  • 2022-12-23
  • 2019-01-10
  • 2021-12-25
猜你喜欢
  • 2021-06-04
  • 2021-10-18
  • 2021-06-28
  • 2022-02-04
  • 2021-06-22
相关资源
相似解决方案