首页 > 代码库 > 2016-11-28

2016-11-28

<!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" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <style type="text/css">
        td{
            text-align: center;
        }
    </style>
    <title>html阶段测试</title>
</head>
<body>
    <form method="post" action="receive.php">
        <table border="1" cellpadding="10" cellspacing="0" align="center" rules=all >
            <tr>
                <th colspan="2">信息登记表</th>
            </tr>
            <tr bgcolor="F0F0F0">
                <td > 姓名 </td>
                <td>
                    <input type="text" name="username"/>
                </td>
            </tr>
            <tr>
                <td>性别</td>
                <td>
                    <input type="radio" name="sex" value="男" / checked="checked"><input type="radio" name="sex" value="女" /></td>
            </tr>
            <tr bgcolor="F0F0F0">
                <td>爱好</td>
                <td>
                    <input type="checkbox" name="check1" value="看电影" />看电影
                    <input type="checkbox" name="check1" value="听音乐" checked="checked" />听音乐
                    <input type="checkbox" name="check1" value="旅游"  checked="checked" />旅游    
                </td>
            </tr>
            <tr>
                <td>月薪</td>
                <td>
                    <input type="text" name="money" /></td>
            </tr>
            <tr bgcolor="F0F0F0">
                <td >国籍</td>
                <td>
                    <select>
                        <option value="中国">中国  </option>
                        <option value="美国">美国</option>
                        <option value="韩国">韩国</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td>备注</td>
                <td>
                    <textarea name="备注" id="beizhu" cols="30" rows="2"></textarea>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <input type="submit" value="提交信息" />
                    <input type="reset" value="重置" />
                </td>
            </tr>
        </table>
    </form>
</body>
</html>

作业

2016-11-28