头闻号

惠州市博美电子有限公司

表面活性剂

首页 > 新闻中心 > 科技常识:详解css样式中的border
科技常识:详解css样式中的border
发布时间:2023-02-01 10:10:31        浏览次数:1        返回列表

今天小编跟大家讲解下有关详解css样式中的border-image ,相信小伙伴们对这个话题应该有所关注吧,小编也收集到了有关详解css样式中的border-image 的相关资料,希望小伙伴们看了有所帮助。

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

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

border-image-slice 属性图片边框向内偏移[ <number> | <percentage> ](1,4) ?fill

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

border-image-width 属性设置图片边框的宽度[ <length>|<number> |<percentage> | auto](1,4)

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

div { 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)

div { 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;}

以上就是本文的全部内容 希望本文的内容对大家的学习或者工作能带来一定的帮助 同时也希望多多支持爱蒂网!

来源:爱蒂网