RegisterFormCode代码

  1. <!DOCTYPE html>  
  2. <html>  
  3. <head>  
  4.     <meta charset="utf-8">       
  5.     <title>This is the RigisterFromCode</title>  
  6. <body  
  7.         <form action="" method="get">  
  8.             <table align="center">  
  9.                 <tr>  
  10.                 <td>Your account:</td>  
  11.                     <td><input type=" text" name="account" value=""></td>  
  12.                     </tr>  
  13.                     <tr>  
  14.                 <td>password:</td>  
  15.                     <td><input type="text" name="password" value=""></td>  
  16.                     </tr>  
  17.                 </tr>  
  18.                 <td><input type="submit" value="提交"></td>  
  19.             </table>  
  20.         </form>  
  21.           
  22. </body>  
  23. </html 

运行结果如图所示:

在本次编辑代码的过程中,出现了表单未对齐的情况类似于这样:于是我通过网上查找方法,最后学习到可以用table的方法来使表单对齐,还有种方法就是套一个div,因为我其实对table这种方法还没有理解透彻,所以对于套div的方法也没有多了解。但是我还是会尽我最大努力去把这个知识点掌握的。

路漫漫其修远兮 吾将上下而求索

原文地址:https://www.cnblogs.com/jx937542655/p/9652345.html