border-image-slice属性怎么用


当前第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>

效果图:

1.jpg

以上就是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》频道 >>




打赏

取消

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

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

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

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...