vue-html-to-paper icon indicating copy to clipboard operation
vue-html-to-paper copied to clipboard

how to set the default margin to none

Open hqzh opened this issue 4 years ago • 5 comments

1

hqzh avatar Jul 25 '20 08:07 hqzh

Browser support may vary depending on its implementation of @page (https://caniuse.com/#feat=mdn-css_at-rules_page), but you should be able to achieve this with the following in a print style for both the print window and print output.

@media print {
    @page {
        margin: 0;
    }
}
@media screen {
    body {
       margin: 0;
    }
}

jakedolan avatar Aug 05 '20 02:08 jakedolan

Browser support may vary depending on its implementation of @page (https://caniuse.com/#feat=mdn-css_at-rules_page), but you should be able to achieve this with the following in a print style for both the print window and print output.

@media print {
    @page {
        margin: 0;
    }
}
@media screen {
    body {
       margin: 0;
    }
}

https://github.com/mycurelabs/vue-html-to-paper/issues/47 also face this

hqzh avatar Aug 21 '20 17:08 hqzh

Hello, are you still facing this issue? Thanks.

jofftiquez avatar May 05 '21 02:05 jofftiquez

Hello, are you still facing this issue? Thanks.

it's still

hqzh avatar May 06 '21 06:05 hqzh

https://www.matuzo.at/blog/i-totally-forgot-about-print-style-sheets/

hqzh avatar May 17 '21 06:05 hqzh