border-image-repeat属性怎么用


当前第2页 返回上一页

CSS3 border-image-repeat属性的使用示例

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

<!DOCTYPE html>

<html>

<head>

<style>

div {

    margin:50px;

    border: 30px solid transparent;

    border-image: url('http://ypimg.muzhuangnet.com/Collect/csharp/upload/article/000/000/024/5c62637b1a4fe853.png');

    border-image-slice: 25;

     

}

.round{

    border-image-repeat: round;

}

.repeat{

    border-image-repeat: repeat;

}

.stretc{

    border-image-repeat: stretc;

}

</style>

</head>

<body>

 

<div class="round">

 DIV 使用图像边框--round

</div>

<div class="repeat">

 DIV 使用图像边框--repeat

</div>

<div class="stretc">

 DIV 使用图像边框--stretc

</div>

</body>

</html>

效果图:

1.jpg

本文参考:https://www.html.cn/book/css/properties/border/border-image-repeat.htm

以上就是border-image-repeat属性怎么用的详细内容,更多文章请关注木庄网络博客

返回前面的内容

相关阅读 >>

css3多媒体查询的简单介绍(代码示例)

css3 appearance属性怎么用?

css3中怎么调节透明度

css中resize属性有什么用

css3动画不循环怎么办

animation-play-state属性怎么用

css3怎么实现字体倒影

css3中过渡和动画的区别是什么

css如何使用计数器给元素自动编号?css计数器的使用(代码示例)

css3怎么设置圆角

更多相关阅读请进入《border-image-repeat》频道 >>




打赏

取消

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

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

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

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

评论

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