borderBottom

下枠(ボーダー)を参照/設定します。

構文

オブジェクト.style.borderBottom

例文

<html>
 <head>
  <title>borderBottom</title>
  <script type="text/javascript"><!--
  function changeCSS() {
   document.getElementById("result").style.borderBottom = "4px red solid";
  }
  // --></script>
 </head>
 <body>
 <div id="result">Sample text</div>
 <form>
  <input type="button" value="Change" onClick="changeCSS()">
 </form>
 </body>
</html>

関連記事

スポンサーリンク

a要素全体の文字色に内包子要素の文字色が反映される

ホームページ製作・web系アプリ系の製作案件募集中です。

上に戻る