Foundation 5 and page printing

后端 未结 4 1755
花落未央
花落未央 2021-02-06 08:25

I\'m using Zurb Foundation. I\'m trying to print a page exactly as it looks in large screen but everything get stacked (and floated wrong).

I succeded in having the grid

4条回答
  •  独厮守ぢ
    2021-02-06 08:38

    Here is the CSS for that:

    @media print {
      .large-1 {
        width: 8.33333%;
      }
    
      .large-2 {
        width: 16.66667%;
      }
    
      .large-3 {
        width: 25%;
      }
    
      .large-4 {
        width: 33.33333%;
      }
    
      .large-5 {
        width: 41.66667%;
      }
    
      .large-6 {
        width: 50%;
      }
    
      .large-7 {
        width: 58.33333%;
      }
    
      .large-8 {
        width: 66.66667%;
      }
    
      .large-9 {
        width: 75%;
      }
    
      .large-10 {
        width: 83.33333%;
      }
    
      .large-11 {
        width: 91.66667%;
      }
    
      .large-12 {
        width: 100%;
      }
    }
    

    Source: http://foundation.zurb.com/forum/posts/2820-printing-foundation-5

提交回复
热议问题