Bootstrap grid for printing

前端 未结 11 2163
长情又很酷
长情又很酷 2020-12-23 11:25

I would like to design a report page with a different layout for printing to mobile. I am using bootstrap v3. It seems the grid can\'t differentiate between the two as the b

11条回答
  •  礼貌的吻别
    2020-12-23 11:51

    The following works great to create grid elements specific for print media. Using Bootstrap 3.

    @media print {
        .make-grid(print);
    }
    

    Then you can use all the grid col elements with the print keyword. Ex: col-print-6 col-print-offset-2, etc.

提交回复
热议问题