我正在努力使自己熟悉ASP.NET上的MVC。我有我的global.asax为什么我的样式表在MVC上使用HayWire?
routes.MapRoute("Dept", "Dept/Invoice/{Category}/{Name}",
new {controller = "Dept", action = "Invoice", Category = "", Name = ""});
Controller.cs代码获取数据,并把它放在一个很好的表。我的HTML开始......
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<BMICPolicy.Dept>" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<link rel="Stylesheet" type="text/css" href="../../Content/Test.css" />
<html xmlns="http://www.w3.org/1999/xhtml">
样式表 -
body
{
font-family: Arial, Verdana, Book Antiqua, Sans-Serif;
font-size: 12px;
width: 100%;
height: 100%;
min-height: 100%;
text-align: center;
text-align: -moz-center;
padding: 0px;
margin: 0px;
position: relative;
}
table
{
border: solid 1px #000000;
border-collapse: collapse;
}
table td
{
padding: 5px;
border: solid 1px #000000;
}
table th
{
padding: 6px 5px;
background-color: #729FCB;
border: solid 1px #000000;
text-align: center;
}
thead
{
/*font-size: medium;*/
font: large, bold;
text-align: center;
}
我不知道为什么只有样式表时,我最多可以输入“类别”和我的样式表是完全忽略的作品时,我在地址栏中输入名称(正文字体样式,表格,td,th,thead等)。我错过了什么吗?
我提出的CHANE澄清正在进行坚果...和我的样式表包括 – MrM 2009-09-28 14:56:50
你确定当你输入一个名称,你没有在样式表请求的服务器日志中获得404吗? – 2009-09-28 14:58:01