当我想在 Chrome 下打印我的网页时,我遇到了一个奇怪的错误。我使用 Bootstrap 显示一个表格,它非常适合屏幕尺寸(无论屏幕尺寸是多少)。当我想在 Chrome 下打印网页时,表格被裁剪了,而使用 Firefox 打印布局是完美的。
我已经成功地在 JSFiddle 上重现了我的错误 here .
我的表格的 html 代码是:
<table class="table table-condensed">
<thead>
<tr>
<th>Col1</th>
<th>Col2</th>
<th>...</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="...">
<td>...</td>
<!-- ... -->
</tr>
<tr class="separator empty" />
</tbody>
</table>
您有解决此问题的想法吗?
也许对表格使用不同的 Bootstrap css 类?
最佳答案
关于html - 在 Chrome 上打印 Bootstrap 表时出现错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28987559/