开发者

pt or px for specifying border-width for print

开发者 https://www.devze.com 2023-01-06 01:42 出处:网络
should i use pt or px when specifying 开发者_如何学Goborder-width in css for media print? i basically just want hairlinesFor print you should use pt, as it\'s an absolute unit not based on the resolu

should i use pt or px when specifying 开发者_如何学Goborder-width in css for media print?

i basically just want hairlines


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


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.


for hairlines use just px

0

精彩评论

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