|
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"> <!-- h1 { font-family: Impact, sans-serif } p { font-size: x-large } .min { font-family: "MS P明朝",平成明朝,serif } .gth { font-family: "MS Pゴシック",osaka,sans-serif } .com { font-family: "comic sans MS",sans-serif } --> </style> </herd> <body> <h1>font-family</h1> <p class="min">この部分は明朝体に設定しています。</p> <p class="gth">この部分はゴシック体に設定しています。</p> <p class="com">Comic Sans MS</p> </body> </html> |