Hide the print button when printing the page
CSS implementation
CSS implementation
This can be done in the following ways
@media print {
.Btnprint {
display:none;
}
}
or
<script media="print">
.Btnprint {
display:none;
}
</script>
Read More:
- Click the button to use in the react project window.open Methods open a new page and click the data again
- The back end cannot receive the parameters passed by the front end
- Nginx front end and back end separation + service cluster reverse proxy
- Jsonformat annotation solves the problem of time format in the front end of localdatetime
- Decipher the evolutionary path of junior, middle and senior programmers (front end)
- Front end project construction error unexpected character ‘@’ solution
- Front end Vue project operation error module build failed
- The time of the time database displayed by the front end is inconsistent
- What are the web front end technologies? What are the differences between cookie and session
- Record a front end error net:: err_ HTTP2_ PROTOCOL_ ERROR 200
- [Android] button uses the custom drawable file to set the background, and runs “error inflating class button”
- Front end project runtime prompts syntax error: typeerror: token.type.endswith is not a function solution
- Android EditText cursor control, color modification, show and hide
- Nginx modifies the front end request size limit (413 request entity too large)
- Print regularly to activate the printer (for some printers that need to be activated to print)
- Missing parents in call to ‘print’
- In Python, print() prints to remove line breaks
- Latex sets page margin, page size, page margin and geometry macro package
- 【arm】arm-assembly-print-register-value-in-decimal
- Java foundation — printing Yang Hui triangle