bootstrap printing width

前端 未结 3 510
旧巷少年郎
旧巷少年郎 2021-02-12 11:00

I\'m using bootstrap in an app and as you can see (below) when printing the browser (left side) is using a really small width when printing (right) so the responsive layout is m

3条回答
  •  悲&欢浪女
    2021-02-12 11:35

    Getting rid of the responsive style is the answer! thanks a lot !

    I'm using rails twitter bootstrap, that recompiles the less sources, so just a little note to say that it works like this too (first line of bootstrap_and_overrides.css.less):

    @import "twitter/bootstrap/bootstrap.less";
    @media screen {
        @import "twitter/bootstrap/responsive.less";
    }
    

    oops: edit, it works fine in development, but brings error when compiling for production... had to build 2 distinct bootstrap_and_overrides for screen and print version (looking for a cleaner solution)

提交回复
热议问题