Rumah  >  Artikel  >  hujung hadapan web  >  css样式中的border-image

css样式中的border-image

高洛峰
高洛峰asal
2017-02-28 13:49:511324semak imbas

border-image-source 属性设置边框的图片的路径[none | dc0870658837139040642baa5555a380]

p {
   border: 20px solid #000;
   border-image-source: url(border.png);
}

border-image-slice 属性图片边框向内偏移[ d80b5def5ed1be6e26d91c2709f14170 | 42c97a047d75abc12b9b351eb8562711 ](1,4) ?fill

p {
   border: 20px solid #000;
   border-image-source: url(border.png);
   border-image-slice: 27,27,27,27;
}

border-image-width 属性设置图片边框的宽度[ d82af2074b26fcfe177e947839b5d381|d80b5def5ed1be6e26d91c2709f14170 |42c97a047d75abc12b9b351eb8562711 | auto](1,4)

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 属性设置边框图像区域超出边框的量[ d82af2074b26fcfe177e947839b5d381|d80b5def5ed1be6e26d91c2709f14170 ](1,4)

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 属性设置图像边框是否应平铺(repeated)、铺满(rounded)或拉伸(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;
}


更多css样式中的border-image相关文章请关注PHP中文网!

Kenyataan:
Kandungan artikel ini disumbangkan secara sukarela oleh netizen, dan hak cipta adalah milik pengarang asal. Laman web ini tidak memikul tanggungjawab undang-undang yang sepadan. Jika anda menemui sebarang kandungan yang disyaki plagiarisme atau pelanggaran, sila hubungi admin@php.cn
Artikel sebelumnya:CSS与HTML使用误区Artikel seterusnya:CSS3中nth-child与nth-of-type的区别