这次给大家带来css样式中的border-image使用详解,使用css样式中border-image的注意事项有哪些,下面就是实战案例,一起来看一下。
border-image-source 属性设置边框的图片的路径[none |
p { border: 20px solid #000; border-image-source: url(border.png);}
border-image-slice 属性图片边框向内偏移[
p { border: 20px solid #000; border-image-source: url(border.png); border-image-slice: 27,27,27,27;}
border-image-width 属性设置图片边框的宽度[ <length>|
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 属性设置边框图像区域超出边框的量[
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;}
相信看了本文案例你已经掌握了方法,更多精彩请关注本站其它相关文章!
推荐阅读:
百度贴吧的3D翻牌效果
css3实现动画自行车效果
CSS3实现进度条的俩种方法
立即学习“前端免费学习笔记(深入)”;
免责声明:本站内容仅用于学习参考,信息和图片素材来源于互联网,如内容侵权与违规,请联系我们进行删除,我们将在三个工作日内处理。联系邮箱:chuangshanghai#qq.com(把#换成@)