Bootstrap grid for printing

前端 未结 11 2218
长情又很酷
长情又很酷 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 12:06

    The Sass version of Fredy31 solution:

    @for $i from 1 through 12 {
        .col-print-#{$i} {
            width: #{percentage(round($i*8.33)/100)};
            float: left;
        }
    }
    

提交回复
热议问题