前几天做打印的时候,设计的表格,打印出来之后,边框总是显得有点过粗,网上搜了几个修饰的样式,结果都是失败告终。最后,无耐就有用最笨最笨的写法,结果行之有效,呵呵,晒出来,有用的的时候。就不用在这么麻烦啰嗦的写了。呵呵,好懒惰呀......
有大侠路过,希望能留下你巧妙的招数。在下先谢过了。
<style type="text/css">
.STYLE1 {font-size: 18px; font-weight: bold; color: #FF0000; }
.STYLE2 {font-size: 13px; color: #FF0000; }
.STYLE3 {font-size: 14px; color:Black; }
.tab{
border-top-width : 1px;
border-left-width : 1px;
border-right-width : 1px;
border-bottom-width : 1px;
border-top-color : #FF0000;
border-left-color : #FF0000;
border-right-color : #FF0000;
border-bottom-color : #FF0000;
border-top-style : solid;
border-left-style : solid;
border-right-style : solid;
border-bottom-style : solid;
}
.tab_right_bottom{
border-right-width : 1px;
border-right-color : #FF0000;
border-right-style : solid;
border-bottom-width : 1px;
border-bottom-color : #FF0000;
border-bottom-style : solid;
}
.tab_right{
border-right-width : 1px;
border-right-color : #FF0000;
border-right-style : solid;
}
.tab_bottom{
border-bottom-width : 1px;
border-bottom-color : #FF0000;
border-bottom-style : solid;
}
</style>
<table width="666px" cellpadding="0" cellspacing="0" class="tab">
<tr>
<td height="60" rowspan="2" align="center" class="tab_right_bottom">
<span class="STYLE2">材料编号</span></td>
<td height="60" rowspan="2" align="center" class="tab_right_bottom">
<span class="STYLE2">材料名称</span></td>
<td rowspan="2" align="center" class="tab_right_bottom">
<span class="STYLE2">规格型号</span></td>
<td rowspan="2" align="center" style="width: 53px" class="tab_right_bottom">
<span class="STYLE2">计量单位</span></td>
<td height="30" colspan="2" align="center" class="tab_right_bottom">
<span class="STYLE2">数量</span></td>
<td colspan="2" align="center" class="tab_bottom">
<span class="STYLE2">计划价格</span></td>
</tr>
<tr>
<td width="10%" align="center" class="tab_right_bottom" style="height: 30px">
<span class="STYLE2">请领</span></td>
<td align="center" width="10%" class="tab_right_bottom" style="height: 30px">
<span class="STYLE2">实发</span></td>
<td width="13%" align="center" class="tab_right_bottom" style="height: 30px">
<span class="STYLE2">单价</span></td>
<td width="13%" align="center" class="tab_bottom" style="height: 30px">
<span class="STYLE2">金额</span></td>
</tr>
<tr align="center">
<td class="tab_right_bottom">
</td>
<td class="tab_right_bottom" style="height: 35px">
</td>
<td class="tab_right_bottom">
</td>
<td style="width: 40px; height: 35px;" class="tab_right_bottom">
<
</td>
<td class="tab_right_bottom" style="height: 35px">
</td>
<td class="tab_right_bottom" style="height: 35px">
</td>
<td class="tab_right_bottom" style="height: 35px">
</td>
<td class="tab_bottom" style="height: 35px">
</td>
</tr>
<tr>
<td align="center" class="tab_right_bottom" style="width: 116px">
<span class="STYLE2">生产过程:</span></td>
<td height="30" class="tab_right_bottom" style="width: 91px">
</td>
<td align="center" class="tab_right_bottom">
<span class="STYLE2">过程分类:</span></td>
<td colspan="2" class="tab_right_bottom">
</td>
<td rowspan="2" align="center" style="width: 71px" class="tab_right">
<span class="STYLE2">计划员<br />
审 批:</span></td>
<td colspan="2" rowspan="2">
</td>
</tr>
<tr>
<td align="center" class="tab_right" style="width: 116px">
</td>
<td height="30" colspan="4" align="left" class="tab_right">
</td>
</tr>
</table>