简体   繁体   English

边框半径圆角未显示在打印中

[英]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 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 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. 边框和HR被视为背景图像,因此默认情况下不会与您的页面一起打印。 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. 我不知道您在所有浏览器上都能找到此设置,但是我知道在Chrome浏览器中,该设置位于“打印”对话框中。 I would assume a similar location in other browsers. 我会在其他浏览器中采用类似的位置。

在此处输入图片说明


Under "+More Settings" > "Options": 在“ +更多设置”>“选项”下:

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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