西西河

主题:网页字体大小求教:用 pt 还是 px 还是什么? -- 铁手

共:💬5
分页树展主题 · 全看首页 上页
/ 1
下页 末页
  • 家园 网页字体大小求教:用 pt 还是 px 还是什么?

    我记得有一种是通用的,不管在PC还是MAC在屏幕上都是相同大小。印象中是PX,但是现在看起来有些怪。请哪位帮我确认一下。

    多谢。

    • 家园 pt, and here is my Sampling CSS file,if it useful for you

      a:link { text-decoration:underline; color:black; }

      a:visited { text-decoration:underline; color:black; }

      a:hover { text-decoration:underline; color:black; background-color:rgb(223,217,193); }

      a:active { text-decoration:underline; color:black;}

      BODY { font-size:10pt; font-family:Verdana, sans-serif; background-color:#FFFFFF; }

      TBODY { font-size:10pt; font-family:Verdana, sans-serif; }

      P.big { font-size:14pt; font-family:Verdana, sans-serif; font-weight: normal;}

      P.small{ font-size:12pt; font-family:Verdana, sans-serif; }

      • 家园 谢谢二位,邪门的事情正是从PT转向用PX发生的

        我原来是在CSS中使用PT,字体大小为11pt。后来看到一些资料,包括HIGHWAY的资料,推荐使用PX。结果新版前期使用的是14px大小。结果虽然在我这里看都是一样大小,还是有人抱怨说字体太小。

        彻底糊涂了。明明说PT可以被用户缩放,PX不可以的啊。

    • 家园 看看这个有没有帮助
      Using CSS (cascading style sheets) makes it easy to specify font sizes, but before you set a font size you should be aware that it could change the layout of your site considerably. Different browsers interpret font sizes differently, so a font that appears readable in Microsoft Internet Explorer may be smaller when viewed in Netscape. In addition, font sizes on Windows systems are not always the same as they are on other platforms. Your site may look great to Windows users, but it may be illegible to those using a Mac. 
      
      There is much controversy in relationship to font-size specifications. Our advice is the same as the majority of long-time designers. When you specify a font size, specify it in pixels (px) not points (pt) or em. Using a pt or em font-size property instead of px allows for your site text to be resized according to the viewer's system settings. If their system is set to view very large text, your web site's layout will become distorted and your web site may be illegible to them. 
      
      Also, be very careful not to set your font-size pixels too small. Some folks may not be able to read tiny text and adjusting their system text size will have no effect on your site because your font-size is specified as px. There truly is a happy medium in any situation and the font-size (ie. 12px) will vary depending on the font-family (ie. Arial, Times New Roman, etc.) you use. 

      AND

      Visual Reference Guide for converting CSS Font-size: from px (pixels), pt (point) to em (*)

      外链出处

分页树展主题 · 全看首页 上页
/ 1
下页 末页


有趣有益,互惠互利;开阔视野,博采众长。
虚拟的网络,真实的人。天南地北客,相逢皆朋友

Copyright © cchere 西西河