我有一张桌子,我正在尝试打印它.它在正常模式下工作正常,但是当我旋转时,它在第一个打印页面中可见,但在其他页面上不可见.
th span { transform-origin: 0 50%; transform: rotate(-90deg); white-space: nowrap; display: block; position: relative; top: 0; left: 50%; }
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.2/css/bootstrap.min.css" integrity="sha384-Smlep5jCw/wG7hdkwQ/Z5nLIefveQRIY9nfy6xoR1uRYBtpZgI6339F5dgvm/e9B" crossorigin="anonymous"> <table class="table table-bordered"> <thead> <tr> <th><span style="transform-origin: 0 50%; transform: rotate(-90deg); white-space: nowrap; display: block; position: relative; top: 0; left: 50%;">Firstname</span></th> <th>Lastname</th> <th>Email</th> </tr> </thead> <tbody> <tr> <td>John</td> <td>Doe</td> <td>john@example.com</td> </tr> <tr> <td>Mary</td> <td>Moe</td> <td>mary@example.com</td> </tr> <tr> <td>July</td> <td>Dooley</td> <td>july@example.com</td> </tr> <tr> <td>Mary</td> <td>Moe</td> <td>mary@example.com</td> </tr> <tr> <td>July</td> <td>Dooley</td> <td>july@example.com</td> </tr> <tr> <td>John</td> <td>Doe</td> <td>john@example.com</td> </tr> <tr> <td>Mary</td> <td>Moe</td> <td>mary@example.com</td> </tr> <tr> <td>July</td> <td>Dooley</td> <td>july@example.com</td> </tr> </tbody> </table>
第一和第二个打印页面的屏幕截图:
第一页打印:
第二个打印页面:
注意:当我从中移除旋转跨度时,此功能正常
缺什么?