简体   繁体   中英

Border radius rounded corners not showing up on print

I have read with interest this link

But this has not helped me understand why the problem of border-radius not showing up on print.

They display in the browser, but do not print.

HTML

<div class="card">

    <div class = "qr">
    <div id ="qr1"></div>
    <?php echo $_POST["url"]; ?>
    <div id ="qr2"></div>
    <div id ="qr3"></div>
    <div id ="qr4"></div>

    </div>

    <div class = "desc">
    <div>Site title</div>
    <div><?php echo $_POST["titleText"] ?></div>
    <div>Hosting site</div>
    <div><?php echo $_POST["hostText"] ?></div>
    <div>Who made this site?</div>
    <div><?php echo $_POST["orgText"] ?></div>
    <div>Other information</div>
    <div><?php echo $_POST["commentText"] ?></div>
    </div>

</div>

CSS

.qr {
float:left;   
position: relative;
width: 30%;
}

.desc {
float:left;
width: 70%;
}

.card {
width: 100%;
position: relative;
border-top: 30px solid black;
-moz-border-radius: 20px;
-webkit-border-radius: 20px;
border-radius: 20px;
padding: 5px;
}

Everything I have read suggests I am doing this right. Any help spotting what I have missed would be appreciated.

Borders and HRs are considered to be background-images, and so by default, will not print with your page. If you want to allow them to print, you will have to manually choose to print the page background.

I don't know where you find this setting on all browsers, but I know that in Chrome, the setting is in the print dialog. I would assume a similar location in other browsers.

在此处输入图片说明


Under "+More Settings" > "Options":

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM