スタイルシートを使って文字列に下線・上線・取り消し線を設定する †text-decorationを使って文字列に下線・上線・取り消し線を設定してみます。 スポンサーリンク 関連記事 †
サンプルHTMLソース †text-decoration : none<br /> <div style="text-decoration : none"> none </div> text-decoration : underline<br /> <div style="text-decoration : underline"> underline </div> text-decoration : overline<br /> <div style="text-decoration : overline"> overline </div> text-decoration : line-through<br /> <div style="text-decoration : line-through"> line-through </div>
確認用URL †上記HTMLの確認用リンクです。 以上、文字列に下線・上線・取り消し線を設定する方法でした。 スポンサーリンク |