什么是皮卡?如何在 CSS 中使用皮卡设置字体大小?


1 皮卡等于 12 点;因此,每英寸有 6 皮卡。你可以尝试运行以下代码以使用皮卡 (pc) 设置字体大小

示例

<html>
   <head>
   </head>
   <body>
      <div style = "position:relative;left:10px;top:3px;background-color:yellow;font-size:3pc;">
         This div has font size set in pica.
      </div>
   </body>
</html>

更新于: 2020 年 1 月 30 日

698 次浏览

开启您的 职业生涯

完成课程获得认证

开始
广告
© . All rights reserved.