border

UK[ˈbɔ:də(r)] US[ˈbɔ:rdə(r)]

n.Border; edge; edging; wrapping Edge

vt.& vi. Bound with, on the edge of...

vt. Along the edge of, surround..., edge...

vi. Approximate, adjacent

Third person singular: borders Plural: borders Present participle: bordering Past tense: bordered Past participle: bordered

top

英[ tɒp] 美[tɑ:p]

n. Top, top; (box) cover, (book pages, etc.) upper column; chief; top

adj. The highest; top ; first-class; the largest

vt. form the top; reach the top of...; be at the forefront of...; leader

vi. Summary; transcend; tower; end

Third person singular: tops Plural: tops Present participle: topping Past tense: topped Past participle: topped

##width

英[wɪdθ] 美[wɪdθ, wɪθ, wɪtθ ]

n.Width; breadth

Plural: widths

css border-top-width property syntax

Function:Set the width of the upper border of the element.

Note: Only works when the border style is not none. If the border style is none, the border width is actually reset to 0. Negative length values ​​are not allowed.

Note: Always declare the border-style property before the border-top-width property. An element can only change the width of its border after it has acquired it.

css border-top-width property example

<html>
<head>
<style type="text/css">
p.one 
{
border-style: solid;
border-top-width: 15px
}
p.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>

Run instance »

Click the "Run instance" button to view the online instance