CSS Web Safe Fonts関数 要素 使い方・書き方 例 CSS サンプル

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-serifThis is normal text.This is bold text.
"Times New Roman", Times, serifThis is normal text.This is bold text.
"Courier New", Courier, monospaceThis is normal text.This is bold text.

Serif Fonts:例

フォントファミリーノーマル太文字
Georgia, serifThis is normal text.This is bold text.
"Times New Roman", Times, serifThis is normal text.This is bold text.
"Palatino Linotype", Palatino, "Book Antiqua", serifThis is normal text.This is bold text.

Sans-Serif Fonts:例

フォントファミリーノーマル太文字
Arial, Helvetica, sans-serifThis is normal text.This is bold text.
"Arial Black", Gadget, sans-serifThis is normal text.This is bold text.
"Comic Sans MS", cursive, sans-serifThis is normal text.This is bold text.
Impact, Charcoal, sans-serifThis is normal text.This is bold text.
"Lucida Sans Unicode", "Lucida Grande", sans-serifThis is normal text.This is bold text.
Tahoma, Geneva, sans-serifThis is normal text.This is bold text.
"Trebuchet MS", Helvetica, sans-serifThis is normal text.This is bold text.
Verdana, Geneva, sans-serifThis is normal text.This is bold text.

Monospace Fonts:例

フォントファミリーノーマル太文字
Courier, monospaceThis is normal text.This is bold text.
"Courier New", Courier, monospaceThis is normal text.This is bold text.
"Lucida Console", Monaco, monospaceThis is normal text.This is bold text.

Cursive Fonts:例

フォントファミリーノーマル太文字
"Comic Sans MS", cursiveThis is normal text.This is bold text.
"Courier New", Courier, monospaceThis is normal text.This is bold text.
"Lucida Console", Monaco, monospaceThis is normal text.This is bold text.

fantasy Fonts:例

フォントファミリーノーマル太文字
papyrusThis is normal text.This is bold text.
herculanumThis 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.
harringtonThis is normal text.This is bold text.
fantasyThis is normal text.This is bold text.
    使用上の警告:
  • フォント(Verdana,Georgia, "Comic Sans MS", "Trebuchet MS", "Arial Black",Impact)は、WindowsおよびMacOSでは動作する が、Unix + Xでは動作しない
Web Safe Fonts 関連記事
CSS Web Safe Fonts関数 要素 使い方・書き方 例 CSS サンプル
CSS Web Safe Fonts| 使い方 | 書き方 | サンプル | セレクタ 値 | 属性 入門 | CSS マニュアル – WebRef
あわせて読みたい

Html

Glossary

PHP

JavaScript

JQuery