<!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>横向表单水平对齐 www.etosun.cn</title>
<style type="text/css">
<!--
body{font-family: Arial, Helvetica, sans-serif;font-size: 12px;}
/*input[type="text"] {vertical-align:middle;height:10px;width:90px;}*//*IE66不支持*/
.input_text {vertical-align:middle;height:10px;width:90px;}
input{vertical-align:middle;}
-->
</style>
</head>
<body>
<div class="a">
<form action="" method="get">
<label>用户:
<input type="text" class="input_text" name="textfield" id="textfield" />
</label>
<label>密码:
<input type="text" class="input_text" name="textfield2" id="textfield2" />
</label>
<label>
<input type="image" name="imageField" id="imageField" src="http://etosun.cn/attachment/200805/1210346040_43134ff5.gif" />
</label>
</form>
</div>
</body>
</html>
« 上一篇:负边距在Opera、Safari中的表现
FW路径练习:下一篇 »