解决背景色打印不出来,使用组件的css伪类打印不出来

//背景色打印不出来
@media print {
        .iconClass {
            background: black !important;
            -webkit-print-color-adjust: exact;
        }
    }
//伪类打印不出来
当前页重新css伪类编辑
<style lang="less">
.ivu-steps-horizontal .ivu-steps-title:after {
            content: ' ';
            position: absolute;
            width: 9999px;
            height: 1px;
            left: 100%;
            top: 50%;
            background: #e8eaec !important;
    }
</style>
posted @ 2020-09-05 17:27  苏小白啊  阅读(757)  评论(0编辑  收藏  举报