|
font-style: 斜体 太さ サイズ/行間 フォント名 |
斜体 太さ サイズ 行間 フォント名 |
font-style font-weight font-size line-height font-family |
で指定できる値 で指定できる値 で指定できる値(省略不可) で指定できる値(値の前に「/」が必要) で指定できる値(省略不可) |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <HTML> <HEAD> <META http-equiv="Content-Type" content="text/html; charset=Shift_JIS"> <META http-equiv="Content-Style-Type" content="text/css"> <title>CSS覚書</title> <style type="text/css"> <!-- body { margin: 0; color: #ffffff; background: #009900 URL(back.jpg) } h1, h2 { text-align: center; margin: 0 } h1 { font: italic bold 6em "Times New Roman",Times,serif } h2 { font: 1.5em Arial,sans-serif; color: #ff9900; background: transparent } p { text-align: center; font: 12px/120% "MS P明朝",平成明朝,serif; margin: 1em 2em; padding: 1em; color: #ffffff; background: #000000 } --> </style> </herd> <body> <h1>-font-</h1> <h2>[ shorthand font property ]</h2> <p> このプロパティをりようすると、フォントに関する<BR> 複数のプロパティを一度に設定することが出来ます。 </p> </body> </html> |