Bootstrap print CSS removes background color

后端 未结 7 1548
[愿得一人]
[愿得一人] 2020-11-28 12:47

When I use bootstrap, it removes the background color from everthing when I try to print my page. Almost everything on my website is using bootstrap classes so I want to avo

7条回答
  •  离开以前
    2020-11-28 13:09

    just make the specificity-value more specific and you should be ok. something like:

    @media print {
       tbody>tr:nth-child(even)>td {
            background-color: rgb(230, 216, 216) !important;
        }
    }
    

提交回复
热议问题