项目
在 GitHub 查看
vladocar/Hartija---CSS-Print-Framework
关于
用于网页打印的通用 CSS
网站与应用开发实测星标增长
- 24小时
- -2
- 7天
- -2
- 15天
- -2
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Hartija---CSS-Print-Framework
What is Hartija?
Hartija is universal printing stylesheet or best printing CSS practices all in one.
How Hartija works?
Just use it like normal CSS:
<link rel="stylesheet" href="print.css" type="text/css" media="print">
The "magic" is in media="print", this CSS file will be used by the browser only when you print. You can also use it inside CSS like: @media print { .. }.
Only work you need to do is hide the stuff you don't need in the final print. Basically you hide some id and class in the CSS like:
#navbar, #footer, #someOtherID, .someClass, .otherClass { display : none; }
http://vladocar.github.io/Hartija---CSS-Print-Framework/
You can use direct download or:
$ npm i hartija---css-print-framework
<link rel="stylesheet" href="https://unpkg.com/[email protected]/print.css" type="text/css" media="print" charset="utf-8">
License
This project is licensed under the MIT License
探索相关项目
加载中…