文本框和按钮水平对齐的CSS问题

来源:百度知道 编辑:UC知道 时间:2024/06/09 08:39:41
<!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>无标题文档</title>
<style type="text/css">
.test {height:25px;border:1px #000 solid;}
.text {height:16px;line-height:16px;border:1px #ccc solid;width:100px;}
.button {height:20px;line-height:20px;border:1px #ccc solid;width:60px;}
</style>
</head>
<body>
<div class="test">
<form name="test">
<input name="a" value="&

<!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>无标题文档</title>
<style type="text/css">
.test {height:20px;border:1px #000 solid;}
.text {height:20px;line-height:20px;border:1px #ccc solid;width:100px;}
.button {height:20px;line-height:20px;border:1px #ccc solid;width:60px;}
</style>
</head>
<body>
<div class="text">
<form name="test">
<input name="a"