我有这个 index.aspx 页面,它没有从 CSS 加载图形。文本“测试”加载正常。
我究竟做错了什么?
ASPX
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="index.aspx.cs" Inherits="chinatownexperience.index" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<link href="css/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="body-1">
<div id="topblank"><p>test</p>
</div>
</div>
<form id="form1" runat="server">
</form>
</body>
</html>
CSS:
html,
body {
margin:0;
padding:0;
color:#000;
background: #9c0000;
background: url('images/Chinatown-lgebg.png') left top;
}
#body-1 {
width: 880px; height: 1500px;
margin: 0px auto;
padding: 10px;
overflow:hidden;
}
#topblank {
float: left;
width: 880px;
height:266px;
background: url('images/WebsiteTop.png') repeat-y left top;
}
我一定错过了一些愚蠢的事情吗?