首页 > Web开发 > 详细

css-字体属性

时间:2016-08-31 00:45:22      阅读:265      评论:0      收藏:0      [点我收藏+]
<!DOCTYPE html>
<html>
  <head>
    <title>04-css字体属性.html</title>
    
    <meta name="keywords" content="keyword1,keyword2,keyword3">
    <meta name="description" content="this is my page">
    <meta name="content-type" content="text/html; charset=gbk">
    
    <!--<link rel="stylesheet" type="text/css" href="./styles.css">-->

 <style type="text/css">

    p{
         font-style:italic; /*normal、italic、oblique 后两个都是斜体 */
         font-variant:small-caps;/*normal、small-caps 表示小型的大写英文*/
         font-weight:bold;/* normal | bold | bolder | lighter | number */
         font-size:absolute-size; /* absolute-size | relative-size | length */
         line-height:normal;/*normal | length */
         font-family:黑体;
    }
/*
    p{
    font:italic small-caps bold absolute-size 黑体;
    }  
*/
         
     
 </style>
  </head>
  
  <body>
  <p >  font属性显示 </p><br>
  

  <br>
  </body>
</html>

font属性属于复合属性,可以直接设置各个属性值,也可以列成一排打码。

css-字体属性

原文:http://www.cnblogs.com/almost-mujin/p/5824153.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!