【CSS】text-decoration-color - テキストの装飾(カラー)
CSSのtext-decoration-colorプロパティについてご紹介します。
text-decoration-color
text-decoration-colorはテキスト装飾のカラーを表わすプロパティです。
基本構文
text-decoration-color: 値;
サンプル
次のサンプルはテキストに下線を緑にします。
<style>
p {
text-decoration-line: underline;
text-decoration-color: green;
}
</style>
<p>text text text text text</p>