Home > Article > Web Front-end > Detailed explanation of the border attribute of CSS style
Possible Value: Pixel
Possible values: solid (straight line), dashed (dashed line), dotted (dotted line)
Possible values: red,#f00,#ff0000,rgb(255,0,0),transparent
html code
e388a4556c0f65e1904146cc1a846bee94b3e26ee717c64999d7867364b1b4a3
css code
p { height: 20px; width: 20px; border-color: #FF9600 #3366ff #12ad2a #f0ed7a; border-style: solid; border-width: 20px; }
result
css code
p { width: 0px; height: 0px; border-color: #FF9600 #3366ff #12ad2a #f0ed7a; border-style: solid; border-width: 20px; }
result
css code
p { width: 0px; height: 0px; border-color: lightblue transparent trnasparent transparent; border-style: solid; border-width: 20px; }
result
css code
p { width: 0px; height: 0px; border-color: transparent trnasparent pink; border-style: solid; border-width: 20px; }
result
css Code
p { width: 0px; height: 0px; border-color: transparent gray trnasparent transparent; border-style: solid; border-width: 20px; }
Result
css code
p { width: 0px; height: 0px; border-color: transparent transparent trnasparent lightgreen; border-style: solid; border-width: 20px; }
Result
The above is the detailed content of Detailed explanation of the border attribute of CSS style. For more information, please follow other related articles on the PHP Chinese website!