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
color
英[ 'kʌlə(r)] 美[ˈkʌlɚ]
n.<Beauty> color, color; skin color, complexion, blood color; pigment, dye; essence
v.<Beauty> ; to color...; to change the color of...; to whitewash, to render, to give color; to blush
Third person singular: colors Plural: colors Present participle: coloring Past tense: colored Past participle: colored
css border-color property syntax
Function:Set the color of the four borders. This property can set from 1 to 4 colors.
Description: The border-color attribute is a shorthand attribute that can set the color of the visible parts of all borders of an element, or set different colors for the 4 sides. Remember that the border style cannot be none or hidden, otherwise the border will not appear.
Note: Always declare the border-style attribute before the border-color attribute. The element must get a border before you can change its color.
css border-color property example
<html> <head> <style type="text/css"> p.one { border-style: solid; border-color: #0000ff } p.two { border-style: solid; border-color: #ff0000 #0000ff } p.three { border-style: solid; border-color: #ff0000 #00ff00 #0000ff } p.four { border-style: solid; border-color: #ff0000 #00ff00 #0000ff rgb(250,0,255) } </style> </head> <body> <p class="one">One-colored border!</p> <p class="two">Two-colored border!</p> <p class="three">Three-colored border!</p> <p class="four">Four-colored border!</p> <p><b>注释:</b>"border-width" 属性如果单独使用的话是不会起作用的。请首先使用 "border-style" 属性来设置边框。</p> </body> </html>
Run instance »
Click the "Run instance" button to view the online instance