搜索

我的demo

原创 2019-04-20 12:33:14 242
摘要:<!DOCTYPE html> <html> <head> <title>小案例</title> <meta charset="utf-8"> <style type="text/css"> table{border: 1px&
<!DOCTYPE html>
<html>
<head>
	<title>小案例</title>
	<meta charset="utf-8">
	<style type="text/css">
	table{border: 1px solid #ccc;border-collapse: collapse;}	
	th,td{text-align: center;border: 1px solid #ccc}
	</style>
</head>
<body>
	<h2>表格 </h2>
	<section>
		<table>
			<tr>
				<th>这是表头1</th>
				<th>这是表头2</th>
				<th>这是表头3</th>
			</tr>
			<tr>
				<td colspan="3">这是一列</td>
			</tr>
			<tr>
				<td rowspan="2" >这是一行</td>
				<td>2</td>
				<td>3</td>
			</tr>
			<tr>
				<td>2</td>
				<td>3</td>
			</tr>
		</table>
	</section>

	 <h2>表单</h2>
	<section>
		<form method="GET" action="www.php.cn">
			<p>用户名<input type="text" name="text"></p>
			<span style="display: inline-block; width: 46px">密码</span><input type="password" name="password">
			<p style="margin-left: 175px"><input type="submit" name="submit"></p>
		</form>
	</section>
</body>
</html>


批改老师:西门大官人批改时间:2019-04-20 13:43:43
老师总结:思考一下,表单中的method起什么作用?action呢?

发布手记

热门词条