【发布时间】:2013-01-08 23:58:15
【问题描述】:
我一定很累。 CSS 没有导入 HTML。所有显示的是:测试测试测试(在不同的行)另外,在网格 CSS 中只有 920.gs:
<!DOCTYPE html>
<html>
<head>
<title>Some title</title>
<link rel="stylesheet" type="text/css" href="/css/styles.css" />
</head>
<body>
<div class="container_12" id="content">
<div class="grid_3" id="leftside">
<h1>Test</h1>
</div>
<div class="grid_6">
<h1>Test</h1>
</div>
<div class="grid_3" id="rightside">
<h1>Test</h1>
</div>
</div>
</body>
</html>
添加 CSS:
@import url("http://fonts.googleapis.com/css?family=Days+One&effect=font-effect-fire- animation");
@import url("css/grid.css"")
body {
background-attachment:fixed;
background-repeat:no-repeat;
background-color:#7FA8FF;
background-position:top;
background-image:url("../images/background.png");
text-align: center;
font-family: 'Days One', sans-serif;
}
【问题讨论】:
-
可能是因为您在相对路径的开头使用“/”引用文件,这会将其转换为绝对路径。它可能正在搜索您的服务器根目录。检查 Chrome 开发工具是否有文件加载失败?
标签: html css background stylesheet grid-system