我的问题是我使用下面的代码作为注册表单。它在Firefox和谷歌浏览器中运行正常。但是当我使用Internet Explorer时,整个页面都会保持对齐状态。我已经检查了CSS,但它没有问题。请帮我解决这个问题:
<!-- checking the session -->
<%
try{
%>
<%@ include file="checksession.jsp"%>
<%
}
catch(Exception e){
%>
<jsp:forward page="session.jsp" />
<%
}
%>
<%@page import="cls.dateconverter"%>
<%@include file="includePade/connection.jsp"%>
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="css_inside/reset.css" rel="stylesheet" type="text/css" />
<link href="css_inside/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/marquee.js">
</script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script>
<script src="script/ajax_admin.js" type="text/javascript"></script>
<!---------(For Combo Box)---end------->
</head>
<body>
<div class="top-band">
<div class="signinband" style="width: 100%">
<div class="sms">
</div><!--sms-->
<div class="sign-in-box" Style="width:600px;text-align: right;" ><p>
<ul>
<li><a href="#"></a></li>
<li><a href="#">Home</a></li>
<li><a href="#">Contact Us</a></li>
<li><a href="#">About Us</a></li>
<li style="border:none;"><a href="logout.jsp">Log Out</a></li>
</ul>
</div><!--sign-in-box-->
</div><!--signinband-->
</div><!--top-band-->
<div class="container_12 wrapper" style="margin: auto;">
<div class="grid_12 inner">
<div class="clear"></div>
<div class="grid_12 inner">
<div class="grid_12 footer-info alpha">
<p>This is city based free classified website that help people buy,sell,rent,lease. You can post free ads and reply to ads on web or direct in the city you live in.</p></div><!--footer-info-->
<div class="grid_12 futer alpha">
<ul>
<li><a href="#">Home</a></li>
<li class="slash">|</li>
<li><a href="#">Contact Us</a></li>
<li class="slash">|</li>
<li><a href="#">privacy policy</a></li>
<li class="slash">|</li>
<li><a href="#">Term of Use</a></li>
<li class="slash">|</li>
<li><a href="#">Careers</a></li>
<li class="slash">|</li>
<li><a href="#">Help</a></li>
</ul>
</div><!--futer-->
<div class="grid_12 futer alpha" style="text-align:center">
Copyright © 2012 <a href="index.jsp">myclient.com </a>. All rights reserved
</div><!--futer-->
</div><!--inner-->
</div>
</div><!--wrapper-->
</body>
</html>
答案 0 :(得分:2)
尝试在第一行“检查会话”中删除该注释。一旦我在IE7中遇到同样的问题。希望它能解决这个问题。在您的情况下,我不确定,尝试发布完整的代码。