网页中的表单设计

本文介绍了在网页设计中如何使用HTML创建基础表单,包括表单元素和简单的CSS样式应用,旨在使表单提交和重置按钮更加醒目美观。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

在学习了最基本的网页元素后,接触到了表单,下面是用HTML写的很基础的表单,中间设计到了一点点CSS的内容,不算复杂。

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>表单综合实例</title>
<style type="text/css">
	input.ann{
		border: 2 solid #2B2727;
		color: antiquewhite;
		font-size: 12pt;
		height: 30px;
		background: #999999;
	}
</style>
</head>
<body>
<form name="表单实例" method="post" action="">
<table width="500" border="0" align="center" cellpadding="0" 
cellspacing="2">
<tr>
<td width="143" height="25">姓名:</td>
<td width="351">
<input name="name" type="text" id="name" size="20"></td>
</tr>
<tr>
<td height="25">年龄:</td>
<td><select name="age" id="age">
<option value="18" selected>18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<optio
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值