无法将JS和CSS链接到HTML

时间:2017-05-17 09:23:21

标签: javascript html css bash flask

我在Mac上运行烧瓶并尝试使用以下代码将js和css连接到我的html。当我检查元素时,看起来目录完全正确但css和js对我的html没有影响请帮忙!:

    <!-- https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta -->
    <meta charset="utf-8"/>
    <meta content="initial-scale=1, width=device-width" name="viewport"/>

    <!-- Script for using MathJax -->
    <script type="text/javascript" async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-MML-AM_CHTML"></script>

    <!-- Link to own style sheet -->
    <link href="{{ url_for('static', filename='styles.css') }}" rel="stylesheet"/>

    <!-- app's own JavaScript -->
    <script src="{{ url_for('static', filename='scripts.js') }}"></script>

    <title>Corporate Finance Assistant: {% block title %}{% endblock %} </title>

</head>

File window

0 个答案:

没有答案