欢迎来到DIVCSS5查找CSS资料与学习DIV CSS布局技术!
  cssfont-variant属性简介
 
  使用font-variant属性只有一个作用:把文本设置成小型大写字母,这也是针对英文而言,因为中文不存在大小写之分。
 
  语法:
 
  font-variant:normal/small-caps;
 
  说明:
 
  font-variant属性取值如下:
 
  1.font-variant属性值:normal默认值,正常效果
 
  2.font-variant属性值:small-caps,小型大写字母的字体
 
  示例
 
  <!DOCTYPEhtml>
 
  <htmlxmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
  <title>font-variant属性</title>
 
  <styletype="text/css">
 
  #p1{font-variant:normal;}
 
  #p2{font-variant:small-caps;}
 
  </style>
 
  </head>
 
  <body>
 
  <pid="p1">font-variant属性值为normal(正常效果)</p>
 
  <pid="p2">font-variant属性值为small-caps(小型大写字母)</p>
 
  </body>
 
  </html>




本文转载自中文网


 

如需转载,请注明文章出处和来源网址:http://www.divcss5.com/jiqiao/j54010.shtml