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
width
英[ w?dθ] 美[w?dθ, w?θ, w?tθ]
n.Width; breadth
Plural: widths
css border-width property syntax
Function:Set the width of all borders of the element, or set the width of each border individually.
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: The attribute value "inherit" is not supported by any version of Internet Explorer (including IE8).
css border-width property example
<html> <head> <style type="text/css"> p.one { border-style: solid; border-width: 5px } p.two { border-style: solid; border-width: thick } p.three { border-style: solid; border-width: 5px 10px } p.four { border-style: solid; border-width: 5px 10px 1px } p.five { border-style: solid; border-width: 5px 10px 1px medium } </style> </head> <body> <p class="one">Some text</p> <p class="two">Some text</p> <p class="three">Some text</p> <p class="four">Some text</p> <p class="five">Some text</p> <p><b>注釋:</b>"border-width" 屬性如果單獨(dú)使用的話是不會起作用的。請首先使用 "border-style" 屬性來設(shè)置邊框。</p> </body> </html>
Run instance ?
Click the "Run instance" button to view the online instance