首页 > web前端 > css教程 > css样式中的border-image

css样式中的border-image

高洛峰
发布: 2017-02-28 13:49:51
原创
1363 人浏览过

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

p {
   border: 20px solid #000;
   border-image-source: url(border.png);
}
登录后复制

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

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

border-image-width 属性设置图片边框的宽度[ | | | 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 属性设置边框图像区域超出边框的量[ | ](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中文网!

相关标签:
来源:php.cn
本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板