【发布时间】:2015-09-11 01:51:54
【问题描述】:
我有一个 css 文件,我想在其中导入另一个 css 文件。 我如何在 Django 中做到这一点?
这是我的 style.css 文件,我想在其中导入 owl.carousel.css。
@import url("owl.carousel.css");
body {
margin: 0;
padding: 0;
color: #34495E;
font-family: 'Source Sans Pro', sans-serif;
font-size: 14px;
line-height: 21px;
position: relative;
background: #fff;
}
我在我的模板上使用 {% load static %} 来链接 style.css 但如何在 css 中导入 css ?
<link href="{% static "assets/css/style.css" %}" rel="stylesheet">
【问题讨论】:
标签: html css django django-templates