css打印字体不变

man*_*j82 5 html css

林设计的打印机友好的页面和IM卡住试图改变CSS.I字体属性[字体大小,字体家庭]已经有不知道什么即时做错了什么.我为CSS文件中的body标签指定的字体属性似乎根本不起作用.

可以somone请向我解释我在这里做错了什么?

HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 <html>
  <head>
   <title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" media="print" href="print.css">
</head>

<body>
<div id="wrapper">
    <table width="100%" border="1">
        <tr >
            <td >Job No</td>
            <td>4589</td>
        </tr>
        <tr>
            <td>Job No</td>
            <td>6578</td>
        </tr>
    </table>
</div>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)

CSS

/* CSS Document */
div#wrapper 
{
    margin-left:auto;
    margin-right:auto;
    width:auto;

}
body {
background-color: transparent;
font-size: 12pt;
font-family:'Times New Roman',Times,serif;
color:#000000; }
Run Code Online (Sandbox Code Playgroud)

Pek*_*ica 5

尝试显式指定以下内容的字体属性td:

table tr td {
  font-size: 12pt;
  font-family:'Times New Roman',Times,serif;
}
Run Code Online (Sandbox Code Playgroud)