Html中的文本框和单选按钮

Html中的文本框和单选按钮用来制作页面的登录注册使用、、

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>

  <head>
    <title>HtmlDemo</title>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <link rel="stylesheet" type="text/css" href="mycss.css">
  </head>

  <body>
  <form action="">
       <table align="center">
           <tr>
               <td>用户名:</td><td><input type="text" name="name" /></td>
           </tr>
           <tr>
               <td >密码:</td>
               <td><input type="password" name="pwd" /></td>
           </tr>
           <tr>
               <td >确认密码:</td>
               <td><input type="password" name="pwd1" /></td>
           </tr>
           <tr>
               <td >性别:</td>
               <td>
                   <input type="radio" name="sex" value="m"/>男
                   <input type="radio" name="sex" value="f"/>女
               </td>
           </tr>
           <tr>
               <td >年龄:</td>
               <td><input type="text" name="age" /></td>
           </tr>
           <tr>
               <td><input class="botton1" type="submit" value="注册" /></td>
               <td><input class="botton1" type="button" value ="重置"></td>
           </tr>
       </table>
       </form>
  </body>
</html>

下面是mycss.css部分

-----------------------------

body{
    margin:2em;
    background-color: #CCCCFF;
}
td {
    font-family: "Times New Roman", Times, serif;
    font-size: 14px;
    font-weight: bold;
}
input {
    font-size:9pt;
    color: #003399;
    font-family: 宋体;
    border: '1px' 'dashed' '#999999';
    background: #EEEEEE;
}
.td1{
    font-size: 12pt;
    font-family: 黑体;
}
.botton1{
    background: #FFFFFF;
    font-weight:bold;
    width: 50px;
}

--------------------------------

Html中的文本框和单选按钮

----------------------

------------------------------------------

上一篇:Linux—服务器SSL/TLS快速检测工具(TLSSLed)


下一篇:【绝对给力】Android开发免豆资料(教程+工具+源码)地址汇总