簡體   English   中英

css 樣式打印到左上角

[英]css style print to top left

在此處輸入圖像描述

我需要把那個二維碼移到左上角,知道怎么做嗎?

現在,output 的樣式是:

        @media print {
        body * {
            visibility: hidden;
        }
        #printqr, #printqr * {
            visibility: visible;
        }
        #printqr {
            position: absolute;
            left: 0;
            top: 0;
        }
        }

我希望這能解決你的問題

#printqr {
  position: fixed;
  left: 0;
  top: 0; }

如果您移動詳細信息,請閱讀此內容: https://medium.com/@Idan_Co/the-ultimate-print-html-template-with-header-footer-568f415f6d2a

 parentSelectorOf#printqr{ position: relative; } #printqr { position: fixed; left: 0; top: 0; }

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM