当前第2页 返回上一页
指定图像边框的向内偏移:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | <!DOCTYPE html>
< html >
< head >
< meta charset = "UTF-8" >
< style >
div {
border: 30px solid transparent;
border-image: url('http://ypimg.muzhuangnet.com/Collect/csharp/upload/article/000/000/024/5c62637b1a4fe853.png');
border-image-repeat: round;
border-image-slice:30;
}
</ style >
</ head >
< body >
< div >
DIV 使用图像边框
</ div >
< p >使用的图片:</ p >
< img src = "http://ypimg.muzhuangnet.com/Collect/csharp/upload/article/000/000/024/5c62637b1a4fe853.png" >
</ body >
</ html >
|
效果图:

以上就是border-image-slice属性怎么用的详细内容,更多文章请关注木庄网络博客!
返回前面的内容
相关阅读 >>
20个非常绚丽的html5/css3应用插件的详细介绍(图)
css3有那些内置函数
text-wrap属性怎么使用
transform-style属性怎么用
css3 :first-child选择器怎么用
css3新增伪类有哪些
animation-iteration-count属性怎么用
qq浏览器 不支持css3怎么办
text-overflow属性怎么用
backface-visibility属性怎么用
更多相关阅读请进入《border-image-slice》频道 >>
人民邮电出版社
本书对 Vue.js 3 技术细节的分析非常可靠,对于需要深入理解 Vue.js 3 的用户会有很大的帮助。——尤雨溪,Vue.js作者
转载请注明出处:木庄网络博客 » border-image-slice属性怎么用