媒体查询景观打印? [英] Media queries for landscape printing?
本文介绍了媒体查询景观打印?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一些特别适合打印的样式,这些样式正在应用于打印媒体查询。事情是,如果你切换到横向打印,我的布局打破了一点,我想调整一些东西。
I've got some styles specifically for print, which are being applied correctly with a print media query. The thing is, my layout breaks a bit if you switch to landscape printing, and I'd like to tweak some things for it. Is there any way to define styles for landscape printing?
推荐答案
媒体查询提供符合设备方向的匹配:
Media Queries offer matching against the device's orientation:
@media print and (orientation: landscape) {
/* landscape styles */
}
@media print and (orientation: portrait) {
/* portrait styles */
}
这篇关于媒体查询景观打印?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文