我正在尝试控制打印的HTML元素的布局,这取决于门廊或横向。下面是我在CSS设置中设置的内容。
@media print and (orientation: landscape){
/* Your code for portrait landscape */
#reactView{
/*chrome seems only look at this data*/
height: 7in !important;
}
@media print and (orientation: portrait){
/* Your code for portra