Bootstrap 3 - Print / PDF

后端 未结 3 746
时光取名叫无心
时光取名叫无心 2021-02-04 17:36

I need to print my CV but the old trick


isn\'t working anymore s

3条回答
  •  北海茫月
    2021-02-04 18:14

    In my project I issued the same problem. Since I've got a app.less file in which I import the bootstrap.less source, I did the following:

    @import "my_path/bootstrap.less";
    @media print{
       .make-grid(sm);
    }
    

    Which is actually what it's done in Bootstrap's grid.less file

    Maybe it's not the cleaner solution, but it's 3-code-lines away ;)

提交回复
热议问题