borderTopStyle
上枠(ボーダー)の形状を参照/設定します。設定できる形状はCSSでの指定と全く同じです。
構文
オブジェクト.style.borderTopStyle
例文
<html>
 <head>
  <title>borderTopStyle</title>
  <script type="text/javascript"><!--
  function changeCSS() {
   document.getElementById("result").style.borderTopStyle = "double";
  }
  // --></script>
 </head>
 <body>
 <div id="result" style="border:10px solid black">Sample text</div>
 <form>
  <input type="button" value="Change" onClick="changeCSS()">
 </form>
 </body>
</html>
関連記事
- width
 - height
 - fontWeight
 - fontVariant
 - fontStyle
 - fontStretch
 - fontSize
 - fontFamily
 - font
 - display
 - color
 - borderWidth
 - borderTopWidth
 - borderTopColor
 - borderTop
 - borderStyle
 - borderRightWidth
 - borderRightStyle
 - borderRightColor
 - borderRight
 - borderLeftWidth
 - borderLeftStyle
 - borderLeftColor
 - borderLeft
 - borderColor
 - borderBottomWidth
 - borderBottomStyle
 - borderBottomColor
 - borderBottom
 - border
 - backgroundColor
 
スポンサーリンク





