这是我的HTML:
<!DOCTYPE html>
<html>
<head>
<title> </title>
<link rel="stylesheet" type="text/css" href="style.css">
<link rel="bootstrap" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
</head>
<body background="bgroundpic.jpg">
<div id="top" style="background-color: #F6F6F6"
<h1> This is a website</h1>
</div>
</body>
</html>
这是我的CSS:
html {
background: bgroundpic.jpg no-repeat center center fixed;
height: 100%;
width: 100%;
}
body {
font-family: 'Noto Sans', sans-serif;
margin: 0 auto;
height: 100%;
width: 100%;
background-color: blue
}
h1 {
text-align: centre;
vertical-align: middle;
line-height: 90px;
color: green;
}
.top{
height: 70%;
position
}
我的css名为style.css
,位于名为css
答案 0 :(得分:4)
你自己回答,说你的css文件存在于css目录中。
因此该文件的路径应为:
select to_char(now(),'YY, "January"');
答案 1 :(得分:0)
尝试使用~
或/
或../
<link rel="stylesheet" type="text/css" href="/style.css">
或
<link rel="stylesheet" type="text/css" href="~/style.css">
或
<link rel="stylesheet" type="text/css" href="../style.css">