Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
今さらの @media print
Search
takanorip
September 20, 2018
Technology
500
2
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
今さらの @media print
takanorip
September 20, 2018
More Decks by takanorip
See All by takanorip
今さら理解するウェブフォントver.2026
takanorip
3
660
AI-Slopなデザインを生まないためのデザインプロセス戦略
takanorip
10
6.2k
「見せる」登壇資料デザインの極意
takanorip
7
1.7k
Design System Documentation Tooling 2025
takanorip
3
3.1k
デザインエンジニアの延長にデザインマネージャーとしての可能性を探る
takanorip
1
1.4k
Tools for Design Engineers other than LLM in the LLM era
takanorip
1
910
Bulletproof Design System with TypeScript
takanorip
7
5.4k
Eleventy3.0 で始める爆速個人ブログ開発!
takanorip
0
320
Webフォント選定の極意!フォントの基本から最新トレンドまで徹底解説
takanorip
6
1.2k
Other Decks in Technology
See All in Technology
[AWS 秋のクラウドオペレーション祭り 2026]AWS DevOps Agentで変わるリリースと運用対応 ~リリース管理機能と Directed actions のご紹介~
furuton
4
1.2k
OpenSharing について熱く語る〜AI アセットの共有について〜
kameitomohiro
0
260
【Data Engineering Summit2026_登壇資料】医療ビッグデータ×AIエージェントを支えるデータ基盤とハーネスエンジニアリング
jmdc_presentation
0
110
夫婦で子育てするための育児標準化
codmoninc
PRO
0
160
全人類(ほぼ)AWS Organizations の上でAWSを利用している、その世界を知る話
htan
1
130
今こそ知りたいAmplifyGen2
mkdev10
2
160
DevelopersIO 2026 知識の地図を描く ─ オントロジーとは何か?
ishikawa_satoru
1
1.4k
IoTデバイスを繋げるプロトコルMatterをAndroidで使用する方法
harutiro
0
140
USB PDを使ってスマホを労わりたい
raspython3
0
160
子育てエンジニアの可処分時間が減っても成長を諦めない戦い方
sudoakiy
6
4.4k
3つのアプローチで目指す チームを強くするAI駆動開発
thkt
0
150
More Freedom on the Same Shared GPU Cluster: A Small Team’s Experience with vCluster
nttcom
0
150
Featured
See All Featured
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
3.2k
New Earth Scene 8
popppiees
4
2.7k
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.5k
Done Done
chrislema
187
17k
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
1
1.6k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
232
55k
The Limits of Empathy - UXLibs8
cassininazir
2
710
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
630
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
4 Signs Your Business is Dying
shpigford
187
23k
Skip the Path - Find Your Career Trail
mkilby
1
250
Thoughts on Productivity
jonyablonski
76
5.4k
Transcript
今さらの @media print Takanori Oki @megro.css
自己紹介 • Takanori Oki (@takanorip) • Frontend Developer • Nuxt.js
/ Vue.js / Polymer / Web Components • フォントが好きです • 技術書典5の執筆忙しい
今日は 「印刷用CSS」 の話をします
みなさん 印刷用のCSSって 書いてますか?
@media printで定義
None
@page
None
None
Safari以外なら だいたい使える
sizeに指定できる値(抜粋) value size A5 148mm x 210mm A4 210mm x
297mm B5 176mm x 250mm B4 250mm x 353mm JIS-B5 182mm x 257mm JIS-B4 257mm x 364mm
background-color
印刷時には背景色全て 無視されるので 背景色がなくても 大丈夫なようにCSSをあてる
ブラウザの設定を いじればできるけど、 それをユーザーに強いるのは 微妙
Chromeだけ回避策がある
None
page-break系CSS
要素の中や前後の改行を 操作するプロパティ
None
注意点: 横並びになってる要素には効 かない
tableの子要素 flexboxの子要素 inline-block float
印刷時は横並びを解除する 必要がある
横長tableは印刷できないので 印刷時だけ分割するとかする
良い印刷CSSライフを!
おわり! (源柔ゴシック)