会Adobe Dreamweaver 的朋友出来这表格如何设均匀宽的宽,
1个回答
展开全部
用css样式来做,非常方便,不知道你会不会:
————————————————————
<style type="text/css">
table tr td{
width:100px;/*设置100个宽度*/
text-align:center;/*字体居中*/
}
</style>
——————————————————————————————————
完整代码
——————————————————
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
<style type="text/css">
table tr td{
width:100px;/*设置100个宽度*/
text-align:center;/*字体居中*/
}
</style>
</head>
<body>
<table border="1">
<tr>
<td>aaaaaa</td>
<td>aaaaaa</td>
<td>aaaaaa</td>
<td>aaaaaa</td>
</tr>
<tr>
<td>aaaaaa</td>
<td>aaaaaa</td>
<td>aaaaaa</td>
<td>aaaaaa</td>
</tr>
</table>
</body>
</html>
————————————————————
<style type="text/css">
table tr td{
width:100px;/*设置100个宽度*/
text-align:center;/*字体居中*/
}
</style>
——————————————————————————————————
完整代码
——————————————————
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
<style type="text/css">
table tr td{
width:100px;/*设置100个宽度*/
text-align:center;/*字体居中*/
}
</style>
</head>
<body>
<table border="1">
<tr>
<td>aaaaaa</td>
<td>aaaaaa</td>
<td>aaaaaa</td>
<td>aaaaaa</td>
</tr>
<tr>
<td>aaaaaa</td>
<td>aaaaaa</td>
<td>aaaaaa</td>
<td>aaaaaa</td>
</tr>
</table>
</body>
</html>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询