MENUへ | 元のページに戻る |
■ 1 スタイルを一括して記述した外部ファイルをつくる。( my_style3.css ) ■ 2 スタイルシートを設定したファイルを読み込む。<LINK> ■ 3 <TABLE class=***>のテスト |
Top へ |
A{text-decoration : none;} A:HOVER{color : yellow;background-color : blue;text-decoration : underline;} BODY{font-size: 11pt; line-height: 140%; } TABLE.nor{font-size: 11pt; ・・・クラス:nor 文字サイズ11pt、改行幅140% line-height: 140%; } TABLE.wide{font-size: 11pt; ・・・クラス:wide 文字サイズ11pt、改行幅200% line-height: 200%; } TABLE.narrow{font-size: 11pt; ・・・クラス:narrow 文字サイズ11pt、改行幅100% line-height: 100%; } TABLE.small{font-size: 8pt; ・・・クラス:small 文字サイズ 8pt、改行幅140% line-height: 140%; } TABLE.big{font-size: 20pt; ・・・クラス:big 文字サイズ20pt、改行幅140% line-height: 140%; } PRE.c {font-size: 11pt; border: 1px solid gray; padding: 5px; white-space: pre; width: 100%; background-color: #fffff0; } SPAN.s {font-size:25pt; line-height: 100%; width:100%; filter:Shadow(color=silver,direction=135); }
Top へ |
<HTML> <HEAD> <TITLE>・・・</TITLE> <LINK rel="stylesheet" href="../my_style3.css"> </HEAD> <BODY> ・・・・・・ </BODY> </HTML>
Top へ |
<TABLE class=nor border="1"><TR><TD> このテーブルは<BR>class=nor による<BR>表示テストです。 </TD></TR><TABLE>
|
<TABLE class=wide border="1"><TR><TD> このテーブルは<BR>class=nor による<BR>表示テストです。 </TD></TR><TABLE>
| ||
<TABLE class=narrow border="1"><TR><TD> このテーブルは<BR>class=narrow による<BR>表示テストです。 </TD></TR><TABLE>
|
<TABLE class=small border="1"><TR><TD> このテーブルは<BR>class=small による<BR>表示テストです。 </TD></TR><TABLE>
| ||
<TABLE class=big border="1"><TR><TD> このテーブルは<BR>class=big による<BR>表示テストです。 </TD></TR><TABLE>
|
<TABLE border="1"><TR><TD> このテーブルは<BR>クラス指定なしの<BR>表示テストです。 </TD></TR><TABLE>
|
Top へ |