解决背景色打印不出来,使用组件的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;
             9999px;
            height: 1px;
            left: 100%;
            top: 50%;
            background: #e8eaec !important;
    }
</style>
原文地址:https://www.cnblogs.com/wssdx/p/13618906.html