css-字体属性

<!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属性属于复合属性,可以直接设置各个属性值,也可以列成一排打码。

posted @ 2016-08-30 23:37  ALMOST_MUJIN  阅读(172)  评论(0编辑  收藏  举报