开发者

Would it be better to combine print css with main css or using another CSS file for print would be better?

开发者 https://www.devze.com 2022-12-16 21:51 出处:网络
Which 开发者_JAVA百科way is prefer ed and why to use for print,another css file with media=\"print\" or @media print {....} in same file?If you handle a lot of traffic, then a separate file with a sep

Which 开发者_JAVA百科way is prefer ed and why to use for print, another css file with media="print" or @media print {....} in same file?


If you handle a lot of traffic, then a separate file with a separate link would be a better approach...why send that print CSS when so few people will actually need it?


Depends on

  • how many styles your original file has
  • how many styles will be for printing only
  • how much you think the two parts will expand
  • how much traffic you get (use another page)
  • how likely printing is
  • ...

Basically, there's a lot of variables.

0

精彩评论

暂无评论...
验证码 换一张
取 消