このエントリーをはてなブックマークに追加


CSSでフォントサイズを指定する

以下のようにfont-sizeをptで指定すればフォントのサイズを細かく指定することができますが、

style="font-size : 10pt"

本資料ではpt指定ではなく、largerやlargeなどの文字列指定によるサンプルを記します。


スポンサーリンク

関連記事

font-size : 文字列

以下のfont-sizeのサンプルHTMLを記します。

<div style="font-size : smaller">font-size : smaller</div>
<div style="font-size : small">font-size : small</div>
<div style="font-size : x-small">font-size : x-small</div>
<div style="font-size : xx-small">font-size : xx-small</div>
<div style="font-size : medium">font-size : medium</div>
<div style="font-size : larger">font-size : larger</div>
<div style="font-size : large">font-size : large</div>
<div style="font-size : x-large">font-size : x-large</div>
<div style="font-size : xx-large">font-size : xx-large</div>

font-size動作確認用URL

以下、動作確認用のURLです。

http://web.just4fun.biz/css/5/font-size.html

font-sizeスクリーンショット

上記HTMLをブラウザで表示した時のスクリーンショットです。

01.gif

以上、font-sizeのサンプルHTMLでした。


スポンサーリンク

添付ファイル: filefont-size.html 342件 [詳細] file01.gif 367件 [詳細]

トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2015-03-20 (金) 22:35:49