サイト内検索
...スタイルシート(css)...
スタイルシート・テキスト
文字のスタイル
- 文字のスタイルは、font-styleプロパティを指定します。
- [使い方]
- .sample{font-style: italic;}
- イタリックで表示されている文字を、標準スタイルにするには、
- em{font-style: normal;}を指定します。
プロパティ名 | 値 | 説明 |
---|---|---|
font-style: | italic; | イタリック体にします。 |
oblique; | 斜体にします。 | |
normal; | (標準値・初期設定値) |
サンプル
[headの中]
<style type="text/css"><!--
.sample{font-style: italic;}
-->
</style>
[bodyの中]
指定なしの文字文字を<span class="sample">italic</span>に指定します。
[ブラウザ上]
指定なしの文字文字をitalicに指定します。