简述
本章介绍 Font Awesome 性别图标的用法。假设custom是我们定义大小和颜色的 CSS 类名,如下例所示。
<html>
<head>
<link rel = "stylesheet" href = "http://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.3.0/css/font-awesome.min.css">
<style>
i.custom {font-size: 2em; color: gray;}
</style>
</head>
<body>
<i class = "fa fa-adjust custom"></i>
</body>
</html>
下表显示了 Font Awesome Gender 图标的使用和结果。用表中给出的代码替换上述程序的 < body > 标签以获得相应的输出 -
用法 |
结果 |
<i class="fa fa-无性别习俗"></i> |
|
<i class="fa fa-intersex custom"></i> |
|
<i class="fa fa-mars custom"></i> |
|
<i class="fa fa-mars-double custom"></i> |
|
<i class="fa fa-mars-stroke custom"></i> |
|
<i class="fa fa-mars-stroke-h 自定义"></i> |
|
<i class="fa fa-mars-stroke-v 自定义"></i> |
|
<i class="fa fa-mercury custom"></i> |
|
<i class="fa fa-neuter custom"></i> |
|
<i class="fa fa-transgender custom"></i> |
|
<i class="fa fa-transgender-alt custom"></i> |
|
<i class="fa fa-venus custom"></i> |
|
<i class="fa fa-venus-double custom"></i> |
|
<i class="fa fa-venus-mars custom"></i> |
|