我的指标为:我有2个文件的index.php和css文件。 index.php正常工作芽CSS不工作为什么?
<html>
<head>
<meta charset="utf-8"
<link href="style.css" rel="stylesheet" />
<title>collapaing Header</title>
</head>
<body>
<div id="container">
<header>
<h1>This is my header </h1>
</header>
<div id="banner">
<h2> This is the banner </h2>
</div>
<div id="content">
<p>Content goes here </p>
</div>
</body>
</html>
我的CSS是:
body{
text-align: center;
}
header{
height: 100px;
background: #dbdbdb;
width: 100%;
z-index: 10;
}
.banner{
width: 100%;
height: 500px;
position: fixed;
top: 100px;
background: #707070;
}
.content{
width: 100%;
position: relative;
top: 400px;
height: 1500px;
}
真正的同一个文件夹?你把每个字符串放在'\''中? –
“不工作” - 我们真的不知道应该如何工作...所以,请描述问题。 – Federkun
我的CSS无法应用任何内容 – farzadking