Html 为什么tr会削减td高度的小数点

Html 为什么tr会削减td高度的小数点,html,css,google-chrome,firefox,Html,Css,Google Chrome,Firefox,基本的html是免费的 <table class="section"> <tr> <td> <pre><span class="Tahoma">this is a test</span></pre> </td> </tr> </table> 当是firefox或chrome时,我可以将td高度设置为23.

基本的html是免费的

<table class="section">
    <tr>
        <td>
            <pre><span class="Tahoma">this is a test</span></pre>
        </td>
    </tr>
</table>
当是firefox或chrome时,我可以将td高度设置为23.5667px,但只有firefix可以将tr设置为23.5667px,chrome设置为24px

小数对我来说很重要,因为虽然chrome不能显示正确的宽度小数px,但它可以优化它,所以当有很多具有小数高度的div时,chrome将显示几乎正确的宽度小数px

但是如果tr已经被削减到小数点,chrome无法优化它


有人能告诉我怎么处理吗

你为什么使用点和毫米而不是像素或ems?看看@threeandme是的,我使用毫米的原因是用于html到pdf的导出,我必须使用pt或mmAh,我明白了,那么我不认为你能做什么。见@rofez post。我会尝试调整这些数字,看看你是否可以通过这种方式改善渲染效果。对于认为这无关紧要的人,请看一个重复的问题。因为打印机的分辨率比监视器高,所以能够指定分数像素很重要。
    * {
        margin: 0;
        padding: 0;
    }
    table {
        border-collapse: separate;
        border-spacing: 0;
        table-layout: fixed;
        width: 100%;
    }
    table span {
        font-size: 12pt;
        line-height: 1;
        color: #000;
        font-weight: normal;
        font-style: normal;
        text-decoration: none;
    }
    table pre {
        margin: 1mm 1.5mm;
        display: block;;
        position: relative;
        font-size: 0;
    }