5 个解决方案
#1
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
body,html{margin:0;padding:0;width:100%;}
table{
border-collapse:collapse;
border:2px solid #000;
}
th{
border-bottom:2px solid #000;
}
</style>
</head>
<body>
<table width="100%" >
<tr>
<th > title1 </th>
<th>title2</th>
<th>title3</th>
</tr>
<tr>
<td > </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td > </td>
<td> </td>
<td> </td>
</tr>
</table>
</body>
</html>
#2
Thank you ,谢谢大侠真是帮大忙了。
#3
但是我现在有两个table的时候第二table我想用这个样式怎么弄?
#4
但是我现在有两个table的时候第二table我不想用这个样式怎么弄?
#5
加个样式名 t1
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
body,html{margin:0;padding:0;width:100%;}
table.t1{
border-collapse:collapse;
border:2px solid #000;
}
.t1 th{
border-bottom:2px solid #000;
}
</style>
</head>
<body>
<table width="100%" class="t1" >
<tr>
<th > title1 </th>
<th>title2</th>
<th>title3</th>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td > </td>
<td> </td>
<td> </td>
</tr>
</table>
<br/>
<table width="100%" border=1 >
<tr>
<th > title1 </th>
<th>title2</th>
<th>title3</th>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td > </td>
<td> </td>
<td> </td>
</tr>
</table>
</body>
</html>
#1
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
body,html{margin:0;padding:0;width:100%;}
table{
border-collapse:collapse;
border:2px solid #000;
}
th{
border-bottom:2px solid #000;
}
</style>
</head>
<body>
<table width="100%" >
<tr>
<th > title1 </th>
<th>title2</th>
<th>title3</th>
</tr>
<tr>
<td > </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td > </td>
<td> </td>
<td> </td>
</tr>
</table>
</body>
</html>
#2
Thank you ,谢谢大侠真是帮大忙了。
#3
但是我现在有两个table的时候第二table我想用这个样式怎么弄?
#4
但是我现在有两个table的时候第二table我不想用这个样式怎么弄?
#5
加个样式名 t1
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
body,html{margin:0;padding:0;width:100%;}
table.t1{
border-collapse:collapse;
border:2px solid #000;
}
.t1 th{
border-bottom:2px solid #000;
}
</style>
</head>
<body>
<table width="100%" class="t1" >
<tr>
<th > title1 </th>
<th>title2</th>
<th>title3</th>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td > </td>
<td> </td>
<td> </td>
</tr>
</table>
<br/>
<table width="100%" border=1 >
<tr>
<th > title1 </th>
<th>title2</th>
<th>title3</th>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td > </td>
<td> </td>
<td> </td>
</tr>
</table>
</body>
</html>