本帖最后由 lovelygang0301 于 2010-11-16 19:37:21 编辑

解决方案 »

  1.   

      <style type="text/css">
        div{margin:0 auto;}
      </style>你在body里写一个层。层的样式。
    <body topmargin="0">
    <div>置顶了!</div></body>
      

  2.   

    回复3楼:<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="CMS.View.Frame.Manage.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>Index</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf8" />
    </head>
    <FRAMESET border=0 framespacing=0 rows="80,*" frameborder=0>
    <FRAME name=Top src="Top.aspx" frameBorder=0 noresize scrolling=no>
    <FRAMESET cols="170, *">
    <FRAME name=Left src="Left.aspx" frameborder=0 noresize>
    <FRAME name=Right src="Right.aspx" frameborder=0 noresize scrolling=yes>
    </FRAMESET>
    </FRAMESET>
    <noframes>
    </noframes>
    </html>
      

  3.   

    你吧每个页面的body的style属性里面加上:style="margin:0px auto;"
      

  4.   

    把margin:0px;padding:0px都给加上