“page-break-inside:avoid” - 不工作 [英] "page-break-inside: avoid "- does not work

查看:1129
本文介绍了“page-break-inside:avoid” - 不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在打印css ...我想打印某些块作为一个整体,因此我使用了page-break-inside:avoid。但这似乎不起作用。

I am making a print css... And i want to print certain blocks as a whole, therefore I used 'page-break-inside: avoid'. But this doesn't seem to work.

我一直在寻找解决方案...我使用Google Chrome

I have been searching desperatly to find a solution... I use Google Chrome

    .print-block
    {
        display: block;
        page-break-inside: avoid !important;
        margin-bottom: 10px;
        padding-bottom: 5px;
        border-bottom: 1px dashed black;
    }

这是CSS,我使用...

This is the CSS, I am using...

推荐答案

只有Opera完全支持 page-break-inside

Only Opera fully supports page-break-inside.

参考文献:

一般

Chrome特定

Firefox专用

这篇关于“page-break-inside:avoid” - 不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆