先给大家一个参考图片

查看演示
全部代码:
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>form表单用CSS怎么实现美化</title>
<style type="text/css">
<!--
fieldset {
width:190px;
height:150px;
border:1px solid red;
background:orange;
}
dt,dd {
float:left;
margin:5px 0;
width:30px;
}
dd {
width:auto;
}
-->
</style>
</head>
<body>
<fieldset>
<form>
<dl>
<dt><label for="a">用户:</label></dt>
<dd><input type="text" id="a" /></dd>
<dt><label for="b">密码:</label></dt>
<dd><input type="password" id="b" /></dd>
<dt></dt>
<dd><button>登陆</button><button>注册</button></dd>
</dl>
</form>
</fieldset>
<div><a href=/Article/zuopin/divcss/2006-12-26/Article_20061226190923_176.html>原文地址</a>:兼容friefox IE6.0 opera的CSS提交表单</div>
</body>
</html>
[1] [2] 下一页