Flask加载所有内容,但不加载#mid和#logo的CSS。问题在哪里? 我的html文件
<html>
<head>
<title> Site </title>
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='style.css') }}" />
</head>
<body bgcolor="#faf0c5" >
<div id="logo">
</div>
<ul>
<li><a id="sansserif" href="#home">Pocetna</a></li>
<li><a id="sansserif" href="#news">Pocetna</a></li>
<li><a id="sansserif" href="#contact">Pocetna</a></li>
</ul>
<div id="mid">
</div>
</body>
</html>
#logo {
height: 100px;
width: 220px;
background-image: url('URL');
background-repeat: no-repeat;
background-size: 220px 100px;
border-radius: 10px;
opacity: 0.8;
position: relative;
top: 60px;
left: 220px;
}
body {
background-image: url('URL');
background-repeat: no-repeat;
background-attachment: relative;
background-size: 1100px 350px;
background-position: top;
}
#mid {
height: 500px;
width: 900px;
background-color: white;
margin: auto;
position:relative;
top: 130px;
opacity: 0.8;
}
当我将CSS放入.html文件中时,一切正常,但是我分开的文件不 如果你愿意的话,我可以放我的.py文件 我是新来的烧瓶有人可以帮助我吗?