当前位置:网站首页>通过修改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>
边栏推荐
- C language learning notes (mind map)
- Luogu p1460 [usaco2.1] healthy Holstein cows
- Commodity price visualization
- Leetcode 701 insertion operation in binary search tree -- recursive method and iterative method
- [Thesis code] SML part code reading
- 【课程笔记】编译原理
- A complete collection of necessary learning websites for office programmers
- 【eolink】PC客户端安装
- 【C语言】qsort函数
- Report on the competition status and investment decision recommendations of Guangxi hospital industry in China from 2022 to 2028
猜你喜欢
Memory and stack related concepts
假设检验学习笔记
Embedded point test of app
【API接口工具】postman-界面使用介绍
[postman] collections configuration running process
10m25dcf484c8g (FPGA) amy-6m-0002 BGA GPS module
LTE CSFB process
【Postman】Collections配置运行过程
CoordinatorLayout+NestedScrollView+RecyclerView 上拉底部显示不全
Nodejs realizes the third-party login of Weibo
随机推荐
MIT6.s081-2020 Lab2 System Calls
授予渔,从0开始搭建一个自己想要的网页
[postman] dynamic variable (also known as mock function)
进程和线程的理解
Buuctf-[bjdctf2020]zjctf, but so (xiaoyute detailed explanation)
Usage of test macro of GTEST
Manhattan distance and Manhattan rectangle - print back font matrix
The latest 2022 review of "graph classification research"
[ram IP] introduction and experiment of ram IP core
wib3.0 跨越,在跨越(ง •̀_•́)ง
leaflet 地图
Fault, error, failure of functional safety
LeetCode 731. 我的日程安排表 II
Redis6 cluster setup
Grant Yu, build a web page you want from 0
《卓有成效的管理者》读书笔记
Huawei BFD configuration specification
Nodejs realizes the third-party login of Weibo
My 2021
The usage and difference between strlen and sizeof