書式 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>