borderRightWidth 属性设置元素的右边框的宽度。
</>code
- Object.style.borderRightWidth=thin|medium|thick|length
值 | 描述 |
---|---|
thin | 定义细的下边框。 |
medium | 默认。定义中等的下边框。 |
thick | 定义粗的下边框。 |
length | 允许您自定义下边框的宽度。 |
本例改变右边框的宽度:
</>code
- <html>
- <head>
- <style type="text/css">
- p
- {
- border: thin solid #FF0000
- }
- </style>
- <script type="text/javascript">
- function changeBorderWidth()
- {
document.getElementById("p1").style.borderRightWidth="thick";
- }
- </script>
- </head>
- <body>
- <input type="button" onclick="changeBorderWidth()"
- value="Change right border width" />
- <p id="p1">This is a paragraph</p>
- </body>
- </html>
如对本文有疑问,请提交到交流论坛,广大热心网友会为你解答!! 点击进入论坛
Powered by 365建站网 RSS地图 HTML地图
copyright © 2013-2024 版权所有 鄂ICP备17013400号