百分百源码网-让建站变得如此简单! 登录 注册 签到领金币!

主页 | 如何升级VIP | TAG标签

当前位置: 主页>网站教程>html5教程> 详解css样式中的border-image
分享文章到:

详解css样式中的border-image

发布时间:01/15 来源: 浏览: 关键词:
这篇文章详解了css样式中的border-image,非常实用,有需要的同学可以参考一下

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

1
2
3
4
div {
   border:20pxsolid#000;
   border-image-source:url(border.png);
}

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

1
2
3
4
5
div {
   border:20pxsolid#000;
   border-image-source:url(border.png);
   border-image-slice:27,27,27,27;
}

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

1
2
3
4
5
6
div {
   border:20pxsolid#000;
   border-image-source:url(border.png);
   border-image-slice:27,27,27,27;
   border-image-width:27px110%27px;
}

border-image-outset 属性设置边框图像区域超出边框的量[ <length>|<number> ](1,4)

1
2
3
4
5
6
7
div {
   border:20pxsolid#000;
   border-image-source:url(border.png);
   border-image-slice:27,27,27,27;
   border-image-width:27px110%27px;
   border-image-outset:27px27px27px27px;
}

border-image-repeat 属性设置图像边框是否应平铺(repeated)、铺满(rounded)或拉伸(stretched)(1,2)

1
2
3
4
5
6
7
8
9
div {
   border:20pxsolid#000;
   border-image-source:url(border.png);
   border-image-slice:27,27,27,27;
   border-image-width:27px110%27px;
   border-image-outset:27px27px27px27px;
   border-image-repeat: rounded;
   border-image:url(border.png)27 rounded;
}
打赏

打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,你说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

百分百源码网 建议打赏1~10元,土豪随意,感谢您的阅读!

共有3人阅读,期待你的评论!发表评论
昵称: 网址: 验证码: 点击我更换图片
最新评论

本文标签

广告赞助

能出一分力是一分吧!

订阅获得更多模板

本文标签

广告赞助

订阅获得更多模板