borderLeft

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

構文

オブジェクト.style.borderLeft

例文

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

関連記事

スポンサーリンク

見出し H1 H2 H3 H4 H5 H6

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

上に戻る