How does this print stylesheet work?

前端 未结 3 900
被撕碎了的回忆
被撕碎了的回忆 2021-01-14 11:51

I really like how http://www.honorshaven.com/ looks printed (to pdf). I\'ve looked through the source to try to figure out how they did it (my navigation always turns into

3条回答
  •  无人共我
    2021-01-14 12:11

    You can specify which stylesheet to use for different media.

    In this case, they implement a print specific stylesheet to handle styling everything for a printed page.

    Check out this W3 page for the different media types available:

    W3C - Media Types

提交回复
热议问题