Html 表单向右对齐

Html 表单向右对齐,html,css,internet-explorer,jsp,alignment,Html,Css,Internet Explorer,Jsp,Alignment,我的问题是我使用下面的代码作为注册表格。它在Firefox和Google Chrome中工作正常。但当我使用Internet Explorer时,整个页面都是左对齐的。我已经检查了CSS,但是没有问题。请帮我解决这个问题: <!-- checking the session --> <% try{ %> <%@ include file="checksession.jsp"%> <% }

我的问题是我使用下面的代码作为注册表格。它在Firefox和Google Chrome中工作正常。但当我使用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 &#169; 2012 <a href="index.jsp">myclient.com </a>. All rights reserved  
         </div><!--futer-->
      </div><!--inner-->
      </div>
    </div><!--wrapper-->
    </body>
    </html>


这是一个基于城市的免费分类网站,帮助人们购买、出售、出租、租赁。你可以在网上发布免费广告和回复广告,也可以直接在你居住的城市发布

  • |
  • |
  • |
  • |
  • |
版权©;2012 . 版权所有
尝试删除第一行“检查会话”中的注释。我曾经在IE7中遇到过同样的问题。希望它能解决这个问题。如果您不确定,请尝试发布完整代码。

style.css和表单在哪里?我已经检查了style.css。这是一个漫长的过程。这就是为什么我不发布它。我认为你没有发布完整的代码。如果你需要这里的帮助,就去做吧。尝试删除每个div并检查它,如果您想检查div,请使用“firebug for IE”或“Microsoft Internet Explorer开发者工具栏”(,或)谢谢您的回答。如果在我删除评论时工作正常,欢迎您。从下次开始,请详细说明问题。