CSS File not responding
The third link in the below code is supposed to be my own stylesheet for a django app I'm creating. There is only one style sheet in the entire application, but for some reason when I went to add new styles today none of them were taking place.
I deleted all the CSS from the file to see if it impacted the site, and it had no effect. Then I deleted the file all together, and still no change in appearance.
Then I commented out the <link />
to the stylesheet and the website loses its styles! I assume one of two things is happening
<head>
{% load static %}
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
<link rel="stylesheet" href="https://opensource.keycdn.com/fontawesome/4.6.3/font-awesome.min.css" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"/>
<link type = "text/css" rel = "stylesheet" href= "{% static 'polls/stylesheet.css' %}" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script type="text/javascript" src="{% static 'polls/script.js' %}"></script>
</head>
链接地址: http://www.djcxy.com/p/30546.html
上一篇: 链接CSS样式表服务错误的文件
下一篇: CSS文件没有响应