table表格及相关属性设置
<!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=utf-8" />
<title>无标题文档</title>
<style type="text/css">
.table{height:80%; width:40%;}
.table td{border-bottom:solid 1px #000; line-height:30px; text-align:center;}
.table select{ width:100px; height:23px; background: #f9f9f9; border:1px solid; border-color: #666 #ccc #ccc #666;  }
.test_input {text-indent:5px; background: #f9f9f9; border:1px solid; border-color: #666 #ccc #ccc #666;}
</style>
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" class="table">
<tr><td>标题文档</td><td>标题文档</td></tr>
<tr><td>标题文档</td><td>标题文档</td></tr>
<tr><td>标题文档</td><td>标题文档</td></tr>
<tr><td>标题文档</td><td>标题文档</td></tr>
<tr><td>标题文档</td><td>标题文档</td></tr>
<tr>
<td>
<select name="test_select">
<option>中国</option>
<option>中国</option>
<option>中国</option>
<option>中国</option>
</select>
</td>
<td><input type="text" class="test_input"/></td>
</tr>
</table>
</body>
</html>
cellpadding:指定表格单元格与内容之间的间距;
cellspacing:指定相邻单元格边框的间距;
                    
                
                
            
        
浙公网安备 33010602011771号