首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

css代码在设计视图里展示,但是在运行网页后就不显示,求各位达人解释

2012-08-15 
css代码在设计视图里显示,但是在运行网页后就不显示,求各位达人解释啊css代码在设计视图里显示,但是在运行

css代码在设计视图里显示,但是在运行网页后就不显示,求各位达人解释啊
css代码在设计视图里显示,但是在运行网页后就不显示,求各位达人解释啊,就是foot那个部分不显示
下面是我母版
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="Frontend.master.cs" Inherits="MasterPages_Frontend" %>

<!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 id="Head1" runat="server">
  <title></title>
  <asp:ContentPlaceHolder id="head" runat="server">
  </asp:ContentPlaceHolder>
  <link href="../App_Themes/Blue1/Blue1.css" rel="stylesheet" type="text/css" />
</head>
<body>
  <form id="form1" runat="server">
  <div id="PageWrapper">
  <div id="Header"><a id="A1" href="~/" runat="server"></a></div>
  <div id="MenuWrapper"></div>
  <div id="Navigation">
  <asp:TreeView ID="TreeView1" runat="server" DataSourceID="SiteMapDataSource1">
  </asp:TreeView>
  <asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" />
  </div>
  <div id="MainContent">
  <asp:ContentPlaceHolder id="cpMainContent" runat="server">
  </asp:ContentPlaceHolder>
  </div>
  <div id="Foot">hello</div>
  </div>
  </form>
</body>
</html>
下面是我的css文件
*
{
  /* 
  Defines the main font used throughout the entire site 
  */
  font-family: Arial, Sans-Serif;
}

body
{
  /* 
  Clears white space around the body and gives it a dark gray color.
  */
  margin: 0;
  background-color: #85BFD3;
}

a
{
  /*
  Clears the underline on normal links, and gives them a purple text color.
  */
  text-decoration: none;
  color: #4628C4;
}

a:hover
{
  /*
  Underlines links when the user hovers the mouse over them.
  */
  text-decoration : underline;
}

h1
{
  /*
  Makes h1 elements smaller than their browser default.
  */
  font-size : 20px;
}

h2
{
  /* 
  Gives h2 elements a different background color and size, 
  and adds a bit of margin at the top to create room between the heading and the preceding element.
  */
  font-size : 14px;
  color : #7773A1;
  margin-top : 10px;
}

#PageWrapper
{
  /*
  Sets the total width for the entire page. Also sets the background-color
  which is used to fill the background of the Sidebar in case the MainContent block is taller than the Sidebar.
  Uses margin: auto to center the entire page in the middle of the browser's window.
  */
  width: 900px;
  margin: auto;
}

#Header
{
  /*
  Gives the header the same width as the PageWrapper. The height creates some room for the logo
  that is set with the background-image.
  */
  background-image: url(Images/Header.jpg);
  width: 900px;
  height: 86px;
}


#Header a
{
  /*
  The #Header a is a link nested in #Header. It provides a link back to the homepage.
  The size of the link is the same as the header, so the entire header is clickable.
  */
  width: 900px; 
  height: 86px; 
  display: block;  
}

#MenuWrapper
{
  /*
  The menu spans the page width, right below the header.
  At the top and left a few pixels padding is applied to create some room.
  */
  background-image: url(Images/MenuBackground.jpg);
  width: 900px;
  height: 50px;
  padding-top: 7px;
}

#MenuWrapper a
{
  /*
  Links in the Menu are white. This gets overriden by styles in chapter 7.
  */
  color: #fff;
}

.MainMenu
{
  /*
  The Menu gets a white border on all four sides.
  */
  border: 1px solid white;
  width: 814px;
  height: 19px;
  background-color : #cccccc;
}

.MainMenu ul li
{
  /*
  Gives the four menu items in the main menu a width of 200px each
  */
  width: 200px;
}

#MainContent
{
  /*
  Defines the main content area. The #MainContent element has a minimum height of 500 pixels, but can grow if necessary.
  The font-size is 80% of its parent element, which in this case comes down to 80% of the font
  the user has specified as the default font in the browser.
  */
  font-size: 0.8em;
  width: 715px;
  border-left: 1px solid white;
  border-right: 2px solid white;
  float: left;
  background-color: #CEDFCF;
  min-height: 500px;
  padding: 10px;
}

#Navigation
{
  /*
  The Sidebar is positioned to the right of the MainContent area. It gets the same font-size as #MainContent
  and gets a background image called Sidebar.jpg. To ensure the image is visible in (most) browsers
  on a small page, the element gets a minimum height of 500px. This is ignored by IE 6.
  */
  font-size: 0.8em;
  color: White;
  background-repeat: no-repeat;
  background-color: #CEDFCF;
  width: 142px;
  min-height: 500px;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 20px;
  float: left;
}
#

#Foot
{
  /*
  The footer is positioned below all other content (yet still within PageWrapper).
  clear: both is used to clear the impact of the float properties used for #MainContent and #Sidebar.
  */
  width: 900px;
  clear: both;
  height: 37px;
  background-color : #22709E;
  color: White;
  text-align: center;
  font-size: 0.7em;
  font-weight: bold;
  line-height: 37px;
}

.Introduction
{
  font-style: italic;
  color: #3e3e3e;
}

.MyButton
{
  color: White;
}

[解决办法]
}
#

#Foot

是不是多了个#

热点排行