当前位置:网站首页>通过修改style设置打印页样式
通过修改style设置打印页样式
2022-07-06 06:04:00 【mojocube】
HTML打印我们通常需要修改里面的样式,以符合打印需求,例如隐藏某些控件,修改一些样式等,我们可以通过修改style样式,达到想要的效果:
<style>
@media print {
.print{display:block !important;}
.box{border-top:0px !important}
.box-header,.box-title,.box-footer,.main-footer{display:none !important}
}
</style>边栏推荐
猜你喜欢

Leetcode 701 insertion operation in binary search tree -- recursive method and iterative method

Coordinatorlayout+nestedscrollview+recyclerview pull up the bottom display is incomplete

Novice entry SCM must understand those things

【论文代码】SML部分代码阅读

Nodejs realizes the third-party login of Weibo

【论文阅读】NFlowJS:基于鲁棒学习的合成负数据密集异常检测

Hypothesis testing learning notes
![[postman] collections configuration running process](/img/09/bcd9fd6379fa724671ffd09278442e.png)
[postman] collections configuration running process

Idea new UI usage

LeetCode 731. 我的日程安排表 II
随机推荐
[happy Spring Festival] if you feel happy, dance
【C语言】字符串左旋
[untitled]
Analysis report on development trends and investment planning of China's methanol industry from 2022 to 2028
ContentType的作用
對數據安全的思考(轉載)
LeetCode 739. 每日温度
[web security] nodejs prototype chain pollution analysis
J'ai un chaton.
How to recover Huawei router's forgotten password
Linux regularly backs up MySQL database
HCIA review
【微信小程序】搭建开发工具环境
MIT6.s081-2020 Lab2 System Calls
Reading notes of effective managers
数学三大核心领域概述:几何
关于 PHP 启动 MongoDb 找不到指定模块问题
【Postman】Collections配置运行过程
Redis6 cluster setup
[postman] collections - run the imported data file of the configuration