>  기사  >  웹 프론트엔드  >  html红色表格边框打印预览和打印为黑色_html/css_WEB-ITnose

html红色表格边框打印预览和打印为黑色_html/css_WEB-ITnose

WBOY
WBOY원래의
2016-06-21 09:36:111332검색

<meta content="text/html; charset=gb2312" http-equiv="Content-Type" /><style type="text/css"><!--.STYLE7 {	font-size: 24px;	color: #FF0000;	font-weight: bold;}-->.STYLE8 {	font-size: 16px;	}.STYLE11 {	color: #FF0000;	font-weight: bold;}</style></p><p> </p><table bordercolor="#000000" height="795" cellspacing="0" cellpadding="0" width="1056" border="0">    <tbody>        <tr>            <td width="130" height="42" border="0"> </td>            <td valign="middle" align="center" width="660" height="42" border="1">            <table height="106" width="534" border="0">                <tbody>                    <tr>                        <td colspan="3" height="57">                        <div class="STYLE2" align="center"><font color="#ff0000" size="5"><strong>文件稿纸</strong></font></div>                        </td>                    </tr>                    <tr>                        <td width="275" height="41"> </td>                        <td width="84" >                        <div class="STYLE3" align="center"><font color="#ff0000" size="4"><strong>日期:</strong></font></div>                        </td>                        <td width="153"><font size="3"> <input class="InputStyle" id="$field5765$" style="width: 109px; height: 22px" size="14" name="field5765" value="[只读]日期" type="text" /></font></td>                    </tr>                </tbody>            </table>            </td>            <td width="266" height="42"> </td>        </tr>        <tr>            <td> </td>            <td><table class="STYLE8" bordercolor ="#ff0000" cellspacing="0"  width="682" border="1">			<tr>			<td height="622">            <table class="STYLE8" bordercolor ="#FF0000" cellspacing="0"  width="682" border="1" style="border-collapse:collapse;" >                <tbody>                    <tr >                        <td width="126" height="42">                        <div class="STYLE11" align="center"><font size="3">主办部门</font></div>                        </td>                        <td colspan="2">                        <p align="left"> </p>                        </td>                        <td width="108" colspan="2">                        <div class="STYLE11" align="center"><font size="3">领导签发</font></div>                        </td>                    </tr>                                    <tr >                        <td height="42">                        <div class="STYLE11" align="center"><font size="3">字号</font></div>                        </td>                        <td>                        <p align="left"> </p>                        </td>                        <td colspan="2">                        <p align="left"> </p>                        </td>                    </tr>                </tbody>            </table>			</td>			</tr>			</table>            </td>            <td>            <p align="center"> </p>            </td>        </tr>    </tbody></table>
[/code]


回复讨论(解决方案)

黑白的打印机?

@media screen {	table {		border-color:red;	}}@media print {	table {		border-color:black;	}}

성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.