首页 新闻 会员 周边

网页无法顶格(VS 2008/CSS,网页套用了母版)

0
悬赏园豆:30 [已关闭问题]

VS2008创建的项目中,网页套用了母版,并使用默认的CSS,但试了N种方法(包括修改CSS、修改母版的元素属性,或者同时修改,当然也可能是我使用的方法都不对...-_-!)都无法实现让网页格顶,总是在网页的顶头空出10PX左右的空白,郁闷了。。。

只有在些请各位朋友帮下帮,先谢谢了。

下为默认的CSS(貌似VS2008使用的是Css2.1)。。。

 

body {
min-width
: 780px;
margin
: 0;
padding
: 0;
border
: 10;
text-align
: center;
font-family
: "Trebuchet MS", "Lucida Grande", Arial, Helvetica, sans-serif;
font-size
: 85%;
color
: #666666;
background-color
: #B2CFE6;
}

h1, h2, h3, h4, h5, h6
{color: #0066CB;}

h1
{
font-size
: 2.0em;
font-weight
: normal;
}

#mainwrapper
{
margin
: 0 auto;
width
: 100%;
min-width
: 780px;
text-align
: left;
}

#header
{
margin-left
: 0px;
margin-bottom
: 0px;
color
: #FFFFFF;
background-color
: #8CA7BB;
border
:solid 1px #005AC5;
font-size
: 2.0em;
font-weight
: normal;
padding
:10px;
border-bottom
:solid 4px Black;
}

#header-bottom
{
width
:100%;
font-size
: 14px;
font-style
: italic;
}

#content
{
width
: 100%;
border
:solid 1px #005AC5;
background-color
:White;
border-top
:solid 1px Black;
}

#content-left
{
width
:180px;
padding-top
:10px;
}

#content-right
{
width
:auto;
border-left
:1px solid #A7A7A7;
padding
:15px;
vertical-align
:top;
}

#breadcrumb
{
width
: 100%;
font-family
: Verdana;
font-size
: 9pt;
}

#breadcrumb a
{
color
: #0066CB;
text-decoration
: none;
}

#breadcrumb a:hover
{
text-decoration
: underline;
}

#footer
{
width
:100%;
font-size
: 0.8em;
font-style
: italic;
text-align
: left;
}

.menu_nodeStyle
{
color
:Black;
font-family
:"Verdana";
font-size
:8pt;
padding
: 5px 5px 5px 5px;
width
:100%;
border
:solid 1px White;
}

.menu_hoverNodestyle
{
background-color
:#CCCCCC;
border
:solid 1px #888888;
cursor
:pointer;
}

.menu_selectedNodestyle
{
padding
: 5px 5px 5px 5px;
font-weight
:bold;
color
:#0066CB;
}

 

 

 

 

问题补充: 补充母版的页面代码: <%@ Master Language="C#" AutoEventWireup="true" CodeFile="DefaultMaster.master.cs" Inherits="HelloWorld.Shell.MasterPages.DefaultMaster" %> <!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="Head" runat="server"> <title>HelloWorldApplication</title> </head> <body> <form id="mainForm" runat="server"> <asp:ScriptManager ID="DefaultMasterScriptManager" runat="server"> </asp:ScriptManager> &nbsp; <div id="mainwrapper"> <div id="header"> <table style="width:100%"> <tr> <td> HelloWorldApplication <div id="header-bottom">Created with the Web Client Software Factory </div> </td> </tr> </table> </div> <table id="content" width="100%"> <tr> <td id="content-left" valign="top"> <asp:TreeView ID="NavigationTreeView" runat="server" ExpandDepth="2" DataSourceID="ApplicationSiteMap" /> </td> <td id="content-right"> <div id="breadcrumb"> <asp:SiteMapPath ID="DefaultBreadCrumb" SiteMapProvider="DefaultSiteMapProvider" runat="server" /> </div> <asp:ContentPlaceHolder ID="DefaultContent" runat=&quo
Snooper的主页 Snooper | 初学一级 | 园豆:124
提问于:2010-03-25 04:34
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册