为什么ASP.NET引用外部样式表没效果??
ASPX文件代码:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="DumexDemo._Default" %>
<!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/KKK.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<div id="wrap">
<div class="logo">
我们可以的
</div>
<div>
</div>
<div>
</div>
<div>
</div>
<div>
</div>
</div>
</form>
</body>
</html>
CSS代码:
body
{
text-align:center;
}
#wrap
{
text-align:left;
width:990px;
height:600px;
margin:0 auto;
border:1px solid #333;
/*background-color:#ccc; */
}
.logo
{
z-index:1;
width:900px;
height:200px;
border:1px solid #333;
background-image:url('Resources/indexbackground.jpg');
background-repeat:repeat-x;
}
CSS文件名为KKK.css
为什么引用这个样式表没效果??
但是用内部样式表,又有效果,真是有点纠结啊............