关于页面点击还原按钮页面内容错位

yang2948443 2012-09-19 01:37:22
我在做一个界面,但是在浏览器上显示的时候,最大化是显示正常的,但点击还原按钮的时候,右边的内容自动移到中间位置去了,而原本右边的位置却变空白了。求大神们解答,急急急!!!
 <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Logon.aspx.cs" Inherits="Web.Logon" %>

<!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">
<link rel="stylesheet" type="text/css" href="Styles/Main.css"/>
<title>LOGON</title>
<style type="text/css">
.sidebar
{
height: 375px;
width: 180px;
}
</style>
</head>
<body id="body">
<form id="form1" runat="server">
<div id="header1"><img alt="Columbia" id="Image" src="images/01.jpg" /></div>  
<div id="container1">
<div id="mainContent1">
<div id="sidebar1"><img alt="Why" class="sidebar" src="images/cipflyer.jpg" /></div>
<div id="sidebar2">
<img alt="Log" src="images/0.jpg" />
<img alt="Log" src="images/131U0G9354140-595A8.png" />
<ul>
<li class="li1">UserID:</li>
<li class="li2"> <asp:TextBox ID="txtUserID" runat="server"></asp:TextBox> </li>
<li class="li1">Password:</li>
<li class="li2"><asp:TextBox ID="txtPWD" runat="server"></asp:TextBox>
</li>
<li class="li3">
<asp:Button ID="btnLogin" runat="server" Text="Login" />
<asp:Button ID="btnCancel" runat="server" Text="Cancel" />
</li>
</ul>
</div>
<div id="content1">Home
<div id="Pre"><pre style="height: 461px">
Columbia International Publishing (CIP), located in the US,
is a leading organization that delivers high-quality original
research to the world.CIP provides a platform for readers,
authors, editors, and peer reviewers to promote scientific research.
The CIP team consists of professors, scientists, engineers, enterprise
founders,business management experts, and talent staff.
International support provided to CIP by companies and universities
guarantees rapid,barrier-free delivery of research.

In order to promote scientific research, CIP is putting forward its
own definition of Open Access,which entails a great deal more than
“infinite readership,” as Open Access is commonly described.
In order to guarantee the complete authority and editorial independency,
CIP signs a contract with each voluntary editorial board member.
For a better understanding of CIP, please read CIP’s mission,
Why Open Access, the unique definition of CIP’s Open Access,
8 reasons to publish on CIP and 6 reasons to work with CIP.

All submitted manuscripts are subject to rigorous peer review.
Acceptance of a submission is solely based on recommendations by
voluntary editors and peer reviewers.If you are interested in being
a CIP editor or peer reviewer, please contact us.All papers and books
will be published online shortly after their acceptance.
</pre></div></div>
</div>
</div>
<div id="footer">
<p>
Copyright:<a href="#"> Columbia International Publishing LLC. </a>All rights reserved</p>
<p>
Address: 3610 Buttonwood Dr. Suite 200, Columbia MO 65201
</p>
<p>
Telephone: 1-573-886-8964 Fax:573-886-8901 Email: uscip@uscip.org</p>
</div>
</form>
</body>
</html>

#container1 {margin:0 auto; width:1420px;}
#header1
{
height: 100px;
background: #FFFFFF;
margin-bottom: 5px;
}
#mainContent1 { height:480px; margin-bottom:5px; width:1420px;}
#sidebar1 { float:left; width:191px;
padding-top:70px; height:419px;
background:#FFFFFF;
}
#sidebar2
{
float: right;
width: 343px;
height: 413px;
padding-right:10px;
}
#content1 { float:none; height:461px;
background:#FFFFFF;
width:620px;
}
...全文
212 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
yang2948443 2012-09-20
  • 打赏
  • 举报
回复
结贴!原因是样式出现问题了,没有链接进去。
woainilei 2012-09-19
  • 打赏
  • 举报
回复
用IE或火狐的调试工具看下,样式上哪儿里不兼容吧。
tan598121925 2012-09-19
  • 打赏
  • 举报
回复
找个美工调一下。
兼容问题吧
  • 打赏
  • 举报
回复
样式问题,不过在IE下,看了看,没有出现你说的问题,倒是在Firefox下底部错乱
yang2948443 2012-09-19
  • 打赏
  • 举报
回复
都没有人来解答吗?
yang2948443 2012-09-19
  • 打赏
  • 举报
回复
大神们呐,求解,急!

62,104

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧