Web Safe Fonts CSS プロパティとは
トピック:Webセーフフォントは、一般的でWindows,Mac,Linuxなどの幅広いオペレーティングシステムに存在する可能性が最も高いフォント。
プロパティ Web Safe Fonts
実例 コード 1
サンプル コードを試す.sans-serif-font { font-family: Arial, Helvetica, sans-serif;}.serif-font { font-family: "Times New Roman", Times, serif;}.monospace-font { font-family: "Courier New", Courier, monospace;}
使用上の注意:- すべてのフォントがすべてのコンピュータシステムで利用できないため、
Webページで使用しようとしているフォントが現れない場合がある
フォントの組み合わせ サンプル
| フォントファミリー | ノーマル | 太文字 |
|---|
Arial, Helvetica, sans-serif | This is normal text. | This is bold text. |
"Times New Roman", Times, serif | This is normal text. | This is bold text. |
"Courier New", Courier, monospace | This is normal text. | This is bold text. |
Serif Fonts:例
| フォントファミリー | ノーマル | 太文字 |
|---|
Georgia, serif | This is normal text. | This is bold text. |
"Times New Roman", Times, serif | This is normal text. | This is bold text. |
"Palatino Linotype", Palatino, "Book Antiqua", serif | This is normal text. | This is bold text. |
Sans-Serif Fonts:例
| フォントファミリー | ノーマル | 太文字 |
|---|
Arial, Helvetica, sans-serif | This is normal text. | This is bold text. |
"Arial Black", Gadget, sans-serif | This is normal text. | This is bold text. |
"Comic Sans MS", cursive, sans-serif | This is normal text. | This is bold text. |
Impact, Charcoal, sans-serif | This is normal text. | This is bold text. |
"Lucida Sans Unicode", "Lucida Grande", sans-serif | This is normal text. | This is bold text. |
Tahoma, Geneva, sans-serif | This is normal text. | This is bold text. |
"Trebuchet MS", Helvetica, sans-serif | This is normal text. | This is bold text. |
Verdana, Geneva, sans-serif | This is normal text. | This is bold text. |
Monospace Fonts:例
| フォントファミリー | ノーマル | 太文字 |
|---|
Courier, monospace | This is normal text. | This is bold text. |
"Courier New", Courier, monospace | This is normal text. | This is bold text. |
"Lucida Console", Monaco, monospace | This is normal text. | This is bold text. |
Cursive Fonts:例
| フォントファミリー | ノーマル | 太文字 |
|---|
"Comic Sans MS", cursive | This is normal text. | This is bold text. |
"Courier New", Courier, monospace | This is normal text. | This is bold text. |
"Lucida Console", Monaco, monospace | This is normal text. | This is bold text. |
fantasy Fonts:例
| フォントファミリー | ノーマル | 太文字 |
|---|
papyrus | This is normal text. | This is bold text. |
herculanum | This is normal text. | This is bold text. |
"party let" | This is normal text. | This is bold text. |
"curlz mt" | This is normal text. | This is bold text. |
harrington | This is normal text. | This is bold text. |
fantasy | This is normal text. | This is bold text. |
使用上の警告:- フォント
(Verdana,Georgia, "Comic Sans MS", "Trebuchet MS", "Arial Black",Impact)は、WindowsおよびMacOSでは動作する が、Unix + Xでは動作しない
CSS Web Safe Fonts| 使い方 | 書き方 | サンプル | セレクタ 値 | 属性 入門 | CSS マニュアル – WebRef