当前位置:网站首页>通过修改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>
边栏推荐
猜你喜欢
GTSAM中李群的运用
单元测试的意义
Usage of test macro of GTEST
Function of activation function
SQLMAP使用教程(三)实战技巧二
数字三角形模型 AcWing 1015. 摘花生
[ram IP] introduction and experiment of ram IP core
请求转发与重定向
Expose the serial fraudster Liu Qing in the currency circle, and default hundreds of millions of Cheng Laolai
Sqlmap tutorial (III) practical skills II
随机推荐
[postman] collections configuration running process
SQLMAP使用教程(三)实战技巧二
公司视频加速播放
Cannot build artifact 'test Web: War expanded' because it is included into a circular depend solution
Title 1093: character reverse order
Manhattan distance and Manhattan rectangle - print back font matrix
Web服务连接器:Servlet
Overview of three core areas of Mathematics: algebra
功能安全之故障(fault),错误(error),失效(failure)
Implementation of linked list in address book management system
GTSAM中李群的運用
CoordinatorLayout+NestedScrollView+RecyclerView 上拉底部显示不全
The usage and difference between strlen and sizeof
Buuctf-[[gwctf 2019] I have a database (xiaoyute detailed explanation)
数学三大核心领域概述:几何
LeetCode 731. 我的日程安排表 II
Overview of three core areas of Mathematics: geometry
Wib3.0 leapfrogging, in leapfrogging (ง • ̀_•́) ง
Novice entry SCM must understand those things
MIT6.s081-2020 Lab2 System Calls