当前位置:网站首页>通过修改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>边栏推荐
- 【Postman】测试(Tests)脚本编写和断言详解
- Demander le Code de texte standard correspondant à un centre de travail dans l'ordre de production
- How Huawei routers configure static routes
- 【论文代码】SML部分代码阅读
- 【eolink】PC客户端安装
- Thoughts on data security (Reprint)
- c语言——冒泡排序
- 【LeetCode】Day96-第一个唯一字符&赎金信&字母异位词
- (5) Explanation of yolo-v3 core source code (3)
- The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
猜你喜欢

Gtest之TEST宏的用法
![[postman] collections - run the imported data file of the configuration](/img/85/7ac9976fb09c465c88f376b2446517.png)
[postman] collections - run the imported data file of the configuration

Manhattan distance sum - print diamond

【无标题】

Nodejs realizes the third-party login of Weibo

Wib3.0 leapfrogging, in leapfrogging (ง • ̀_•́) ง

【微信小程序】搭建开发工具环境
![[Thesis code] SML part code reading](/img/3c/0deccf499d9b1cbe30a302cb115d73.png)
[Thesis code] SML part code reading
![[postman] collections configuration running process](/img/09/bcd9fd6379fa724671ffd09278442e.png)
[postman] collections configuration running process

LeetCode 729. 我的日程安排表 I
随机推荐
Application du Groupe Li dans gtsam
nodejs实现微博第三方登录
H3C V7 switch configuration IRF
功能安全之故障(fault),错误(error),失效(failure)
C language learning notes (mind map)
ICLR 2022 spotlight | analog transformer: time series anomaly detection method based on correlation difference
High quality coding tool clion
Reading notes of effective managers
My 2021
Significance of unit testing
Buuctf-[gxyctf2019] no dolls (xiaoyute detailed explanation)
假设检验学习笔记
continue和break的区别与用法
Buuctf-[[gwctf 2019] I have a database (xiaoyute detailed explanation)
Summary of data sets in intrusion detection field
Interface test: what are the components of the URL in fiddler
对数据安全的思考(转载)
LTE CSFB process
Yunxiaoduo software internal test distribution test platform description document
《卓有成效的管理者》读书笔记