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字体可以模糊吗

punctuation-trim属性怎么用

谷歌浏览器不支持css3吗

css3中怎么调节透明度

resize属性怎么用

css3什么时间推出的

什么是css3

text-emphasis属性有什么用

css3与css2的区别是什么

border-image-width属性怎么用

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




打赏

取消

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

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

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

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

评论

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