HTML部分1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18<table border="1" class="tab_css_1">
<div>
<thead>
<th>姓名</th>
<th>电话</th>
<th>作业内容</th>
<th>证书</th>
</thead>
<tr v-for="(item,index) of result" :key="index" class="tr_css" align="center">
<td>{{item.name}}</td>
<td class="fw-300">{{item.tel}}</td>
<td>
<input type="text" placeholder="请输入作业内容">
</td>
<td>{{item.certificate}}</td>
</tr>
</div>
</table>
CSS部分1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39table th{
white-space: nowrap;
}
table td{
white-space: nowrap;
}
body,table{
font-size:12px;
}
table{
empty-cells:show;
border-collapse: collapse;
margin:0 auto;
width: 100%;
}
h1,h2,h3{
font-size:12px;
margin:0;
padding:0;
}
table.tab_css_1{
border:1px solid #cad9ea;
color:#666;
}
table.tab_css_1 th {
/*background-image: url("th_bg1.gif");*/
background-repeat:repeat-x;
height:30px;
}
table.tab_css_1 td,
table.tab_css_1 th{
border:1px solid #cad9ea;
padding:0 1em 0;
background-color: #f6fbff;
}
table.tab_css_1 tr.tr_css{
background-color:#f5fafe;
height:30px;
}