标题:页面框架图片太窄了,浏览的时候全跑左边来了
取消只看楼主
_断肠人_
Rank: 1
等 级:新手上路
帖 子:85
专家分:0
注 册:2008-10-28
 问题点数:0 回复次数:2 
页面框架图片太窄了,浏览的时候全跑左边来了
页面框架图片太窄了,浏览的时候全跑左边来了,把内容把加一个div然后加个align=center不巧里面的全有元素都跑中间来了,高手指点

duanchangren1.JPG (139.9 KB)
搜索更多相关主题的帖子: 断肠人 
2008-11-25 04:15
_断肠人_
Rank: 1
等 级:新手上路
帖 子:85
专家分:0
注 册:2008-10-28
得分:0 
<html xmlns="http://www.
<head id="Head1" runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>管理员</title>
    <style type="text/css">
        <!--
        body {
            background-image: url(Images/di-admini2.gif);
            background-repeat: no-repeat;
        }
        #Layer5 {
            position:absolute;
            left:22px;
            top:87px;
            width:144px;
            height:21px;
            z-index:1;
        }
        .STYLE1 {
            font-family: "宋体";
            font-size: 12px;
            color: #FFFFFF;
        }
        a:link {
            color: #000000;
        }
        a:visited {
            color: #000099;
        }
        a:hover {
            color: #000000;
        }
        a:active {
            color: #000000;
        }
        #Layer6 {
            position:absolute;
            left:22px;
            top:120px;
            width:145px;
            height:281px;
            z-index:2;
        }
        #Layer8 {
            position:absolute;
            left:228px;
            top:91px;
            width:520px;
            height:16px;
            z-index:4;
        }
        .STYLE3 {font-family: "宋体"; font-size: 12px; font-weight: bold; }
        #Layer19 {
            position:absolute;
            left:7px;
            top:9px;
            width:156px;
            height:59px;
            z-index:14;
        }
        #Layer20 {
            position:absolute;
            left:210px;
            top:113px;
            width:736px;
            height:606px;
            z-index:15;
        }
        -->
   </style>
</head>
<body>
<form id="Form1" runat="server">
    <div id="Layer5">
      <div align="right" class="STYLE1">管理员,您好!</div>
    </div>
    <div id="Layer6" style="font-size:small">
      <asp:TreeView ID="tvAdmin" runat="server" DataSourceID="XmlDataSource1" ImageSet="Contacts" NodeIndent="10">      
       <DataBindings>
           <asp:TreeNodeBinding DataMember="SiteMapNote" NavigateUrlField="url" TextField="title" />
        </DataBindings>      
          <ParentNodeStyle Font-Bold="True" ForeColor="#5555DD" />
          <HoverNodeStyle Font-Underline="False" />
          <SelectedNodeStyle Font-Underline="True" HorizontalPadding="0px"
              VerticalPadding="0px" />
          <NodeStyle Font-Names="Verdana" Font-Size="8pt" ForeColor="Black" HorizontalPadding="5px"
              NodeSpacing="0px" VerticalPadding="0px" />
        </asp:TreeView>
        <asp:XmlDataSource ID="XmlDataSource1" runat="server" DataFile="~/Admin/AdminTreeView.xml">
        </asp:XmlDataSource>
        &nbsp;
    </div>
    <div id="Layer20">
    <asp:contentplaceholder id="cphContent" runat="server">
        </asp:contentplaceholder>
    </div>
    <div id="Layer8">
      <div class="STYLE3" id="__breadcrumb">
                您现在的位置: </div>
    </div>
    &nbsp;
    <img src="Images/touming.gif" width="126" height="61" border="0" usemap="#Map" style="left: -5px; position: relative; top: 0px" />
  </form>
    </body>
</html>

事在人为
2008-11-26 15:55
_断肠人_
Rank: 1
等 级:新手上路
帖 子:85
专家分:0
注 册:2008-10-28
得分:0 
麻烦看下

事在人为
2008-11-26 15:57



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-246083-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.265559 second(s), 9 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved