大文字化 (Capitalization)

 
テキスト
ホーム > CSS2 Note > 大文字化
C1- ie4- N4-

説明

text-transform: transform; C1- ie4- N4-
値:  capitalize | uppercase | lowercase | none | inherit
初期値:none適用要素:すべて継承:する%値:なしメディア:ビジュアル
このプロパティは、テキストを大文字化、小文字化します。

日本語においては、大文字化、小文字化は行われません。
 

使用例

h1 {text-transform:uppercase}
 

大文字化の値

capitalizeC1- ie4- N4- 各単語の一文字目を大文字化します。
uppercaseC1- ie4- N4- 各単語の全文字を大文字化します。
lowercaseC1- ie4- N4- 各単語の全文字を小文字化します。
noneC1- ie4- N4- 効果を適用しません。初期値。

大文字化

<style type="text/css"><!--
.eg1 {text-transform:none;}       /* 効果を適用しません: 初期値 */
.eg2 {text-transform:capitalize;} /* 各単語の1文字目を大文字化 */
.eg3 {text-transform:uppercase;}  /* 大文字化 */
.eg4 {text-transform:lowercase;}  /* 小文字化 */
--></style>

<div class="eg1">Tobacco is the second major cause of death in the world.</div><br>
<div class="eg2">Tobacco is the second major cause of death in the world.</div><br>
<div class="eg3">Tobacco is the second major cause of death in the world.</div><br>
<div class="eg4">Tobacco is the second major cause of death in the world.</div>
 
トップページ CSS2 Note ページトップ
 2005/09/21発行 2009/09/01更新