border-image-source PropertiesSet the path of the image of the border [none |
p { border: 20px solid #000; border-image-source: url(border.png); }
border-image-slice attribute image border offset inward [
p { border: 20px solid #000; border-image-source: url(border.png); border-image-slice: 27,27,27,27; }
border-image-width Property sets the width of the image border [
p { border: 20px solid #000; border-image-source: url(border.png); border-image-slice: 27,27,27,27; border-image-width: 27px 1 10% 27px; }
border-image-outset Property setting border image The amount of area beyond the border [
p { border: 20px solid #000; border-image-source: url(border.png); border-image-slice: 27,27,27,27; border-image-width: 27px 1 10% 27px; border-image-outset: 27px 27px 27px 27px; }
border-image- The repeat attribute sets whether the image border should be repeated, rounded, or stretched (1,2)
p { border: 20px solid #000; border-image-source: url(border.png); border-image-slice: 27,27,27,27; border-image-width: 27px 1 10% 27px; border-image-outset: 27px 27px 27px 27px; border-image-repeat: rounded; border-image: url(border.png) 27 rounded; }
The above is the detailed content of Detailed introduction to the sample code of border-image in css style. For more information, please follow other related articles on the PHP Chinese website!