プログラミング

text-decoration-styleで線のスタイルを指定【CSS】

text-decoration-styleは文字に引く傍線のスタイルを指定するプロパティです。

{text-decoration-style: スタイル;}

文字に引く傍線を実線ではなく、点線や破線にすることも可能です。

text-decoration-styleの指定方法

text-decoration-styleプロパティでは以下のような値を指定して、傍線のスタイルを決めることができます。

solid 1本の実線
double 2本の実線
dotted 点線
dashed 破線
wavy 波線
1本の実線です。
2本の実線です。
点線です。
破線です。
波線です。

※環境によっては反映されないことがあります。

1 Comment

text-decorationで線の位置・色・スタイルを指定【CSS】 | KUBOGEN へ返信する X