用html做的简易留言簿界面

html-css015

用html做的简易留言簿界面,第1张

<!DOCTYPE html>

<html>

<head>

<meta charset="UTF-8">

<title></title>

</head>

<body>

<h1 align="center" style="color: red">用户留言簿</h1>

<hr color="red" />

<form action="baidu.html" method="post">

<table border="1" cellspacing="0" bordercolor="black" align="center" width="700px" height="300px" style="color: blue">

<tr>

<td width="100" height="50">用 户 名:</td>

<td><input type="text" name="name" /></td>

<td>密 码:</td>

<td><input type="password" name="pwd" /></td>

</tr>

<tr>

<td width="100" height="50">电子信箱:</td>

<td><input type="text" name="email" /></td>

<td>民 族:</td>

<td>

<select name="名族">

<option value="汉族" selected="selected">汉族</option>

<option value="少数名族">少数民族</option>

</select>

</td>

</tr>

<tr>

<td width="100" height="50">性 别:</td>

<td><input type="text" name="sex" />

<input type="radio" name="sex" value="男" checked="checked" />

<input type="radio" name="sex" value="女" />

</td>

<td>爱 好</td>

<td>

<input type="checkbox" name="lanqiu" value="aihao" />篮球

<input type="checkbox" name="zuqiu" value="aihao" />足球

<input type="checkbox" name="paiqiu" value="aihao" />排球

<input type="checkbox" name="qita" value="aihao" />其它

</td>

</tr>

<tr>

<td width="100" height="100">留 言:</td>

<td colspan="4">

<textarea name="liuyan" rows="5" cols="50">请多多指教</textarea>

</td>

</tr>

<tr>

<td height="50" colspan="5" align="center">

<input type="submit" value="确定" />

<input type="reset" value="重写" />

</td>

</tr>

</table>

</form>

</body>

</html>

应该是这样的吧。。

<form action="post.asp" method="post">

    <table>

        <tr>

            <td>标题</td>

            <td><input type="text" name="title" style="width:20px"></td>

        </tr>

        <tr>

            <td>作者</td>

            <td><input type="text" name="author" style="width:10px"></td>

        </tr>

        <tr>

            <td>留言内容</td>

            <td>

                <textarea name="content" cols="40" rows="5"></textarea>

            </td>

        </tr>

        <tr>

            <td></td>

            <td>

                <input type="submit" value="提交" />

                <input type="reset" value="清空" />

            </td>

        </tr>

    </table>

</form>