pt or px for specifying border-width for print

前端 未结 3 1400
感动是毒
感动是毒 2021-01-24 05:30

should i use pt or px when specifying border-width in css for media print?

i basically just want hairlines

相关标签:
3条回答
  • 2021-01-24 05:48

    for hairlines use just px

    0 讨论(0)
  • 2021-01-24 05:51

    For print you should use pt, as it's an absolute unit not based on the resolution of the media.

    0 讨论(0)
  • 2021-01-24 05:51

    In general you should use points or em's in place of pixels when possible. The reason is that points and ems both scale with the users' resolution or zoom setting where pixels do not. On many larger, high definition or wide screen monitors individual pixels are too small to be reliably useful for placement.

    0 讨论(0)
提交回复
热议问题