text-decoration

書式 text-decoration:線の種類
対象全ての要素
継承しない
初期値 ---
解説
線を表示します。
設定名種類
underline下線
overline上線
line-through取り消し線
サンプルコード
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>Sample</title>
<style type="text/css"><!--
body { margin:0px; }
div { position:absolute; top:10;left:10px;
text-decoration:underline;
}
--></style>
</head>
<body>
<img src="Default.png">
<div>サンプルテキストです。<br>Sample Text</div>
</body>
</html>
実際のサンプルをダウンロード