开发者社区> 问答> 正文

chrome 查看css时提示,顺带问下居中兼容的问题

screenshot

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" >
<html>
  <head>
      <title>日志搜索</title>
      <style type="text/css">
          body {
              text-align:center;
          }
          .btn {
              background:url("");
              width:124px;
              height:47px;
          }
          .result .centerDiv{
              margin-left: auto;
              margin-right:auto
          }
          td {
              //align:center;
          }
          table {
              text-align:center;
          }
      </style>
      <script type="text/javascript" src="js/jquery-1.6.4.js"></script>
  </head>
  <body>
      <h2>something</h2>
      <p>这里可以居中</p>
      <div>
      <table>
          <tr>
          <td> 
<form id="logAction" name="..Action" onsubmit="return judgeDays();" action=".." method="post">
<table class="wwFormTable"><!--查看源文件里面自动加的class?-->
           关键:<input id="key" type="text" name="keyword"><br />
           时间[a,b):  <input type="text" id="befTime" name="beforeTime" >&nbsp;&nbsp;<input type="text" id="aftTime" name="afterTime" >
                 <input type="submit"  value="查询">
                  <input type="reset"  value="重置">
        </table></form>
        </td>
        <td>
            <form id="..Action" name="..Action" action=".." method="post">
<table class="wwFormTable">
                 <input type="submit" value="now">
            </table></form>
        </td>
        </tr>
      </table>
      </div>
       <div class="result">
           
       </div>
       
  </body>
</html>

展开
收起
a123456678 2016-03-24 16:37:25 2201 0
1 条回答
写回答
取消 提交回答
  • screenshot

    2019-07-17 19:13:03
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
零基础CSS入门教程 立即下载
低代码开发师(初级)实战教程 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载