Why does css write the right trapezoidal page style but not print it to A4 paper?
css code:
<style>
.tab {
position: relative;
display: inline-block;
padding: .5em 1em .35em;
}
.tab::before {
content: ""; /* To generate the box */
position: absolute; top: 0; right: 0; bottom: 0; left: 0;
z-index: -1;
background: -sharpfff;
border: 5px solid pink;
transform: perspective(.5em) rotateX(5deg);
}
</style>
html Code:
<div class="tab">
hahah
</div>
this is the page effect:
ctr+p :