使用css3属性border-image实现锯齿边框
2021-06-01 06:02
标签:code ado tom com round dev 锯齿 20px parent 三角形png: 最终效果: 使用css3属性border-image实现锯齿边框 标签:code ado tom com round dev 锯齿 20px parent 原文地址:https://www.cnblogs.com/djjlovedjj/p/14588687.htmlDOCTYPE html>
html lang="en">
head>
meta charset="UTF-8">
meta name="viewport" content="width=device-width, initial-scale=1.0">
title>Documenttitle>
style>
.big_box{
width: 400px;
height: 260px;
overflow: hidden;
}
.box{
width: 400px;
height: 200px;
background: #0f0;
border-bottom: 20px solid transparent;
border-image: url(img/三角形.png);
border-image-width: 20px;
border-image-slice: 72;
border-image-repeat: repeat;
border-image-outset: 20px;
box-shadow: 0 0 30px #000;
}
style>
head>
body>
div class="big_box">
div class="box">div>
div>
body>
html>
文章标题:使用css3属性border-image实现锯齿边框
文章链接:http://soscw.com/index.php/essay/89890.html