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


文字列を太文字表示する・font-weight

font-weightで文字の太さを指定するとボールドで表示することができます。
以下にサンプルHTML等を記します。


スポンサーリンク

関連記事

太文字表示するHTML

以下のHTMLにより文字を太文字で表示することができます。

<div style="font-weight : bold">font-weight : bold</div>
<div style="font-weight : bolder">font-weight : bolder</div>
<div style="font-weight : lighter">font-weight : lighter</div>
<div style="font-weight : 600">font-weight : 600</div>
<div style="font-weight : 700">font-weight : 700</div>
<div style="font-weight : 800">font-weight : 800</div>

太文字表示確認URL

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

http://web.just4fun.biz/css/7/weight.html

太文字表示のスクリーンショット

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

01.gif

以上、CSSで太文字表示の設定でした。


スポンサーリンク

添付ファイル: file01.gif 400件 [詳細] fileweight.html 365件 [詳細]

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