Home  >  Article  >  Web Front-end  >  html红色表格边框打印预览和打印为黑色_html/css_WEB-ITnose

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

WBOY
WBOYOriginal
2016-06-21 09:36:111330browse

<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;	}}

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn