border-top-width 属性设置元素的上边框的宽度。
注意:只有当这个值不是 none 时边框才可能出现。
border-top-width:medium|thin|thick|length|inherit;
    | 值 | 描述 | 
| thin | 定义细的上边框。 | 
| medium | 默认值。定义中等的上边框。 | 
| thick | 定义粗的上边框。 | 
| length | 允许您自定义上边框的宽度。 | 
| inherit | 规定应该从父元素继承边框宽度。 | 
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>鱼C-零基础入门学习Web(Html5+Css3)</title>
    <style type="text/css">
        p{
            width: 222px;
        }
        .one
        {
            border-style: solid;
            border-top-width: 15px
        }
        .two
        {
            border-style: solid;
            border-top-width: thin
        }
    </style>
</head>
<body>
   <p class="one"><b>注释:</b>"border-top-width" 属性如果单独使用的话是不会起作用的。请首先使用 "border-style" 属性来设置边框。</p>
   <p class="two">Some text. Some more text.</p>
</body>
</html>
注释:"border-top-width" 属性如果单独使用的话是不会起作用的。请首先使用 "border-style" 属性来设置边框。
Some text. Some more text.
表格中的数字表示支持该属性的第一个浏览器版本号。
| Safari | Chrome | FireFox | IE | 
| 6.0 | 3.0 | 4.0 | 9.0 |