首页 > 其他 > 详细

三角缺口的边框

时间:2014-11-22 15:56:29      阅读:238      评论:0      收藏:0      [点我收藏+]
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>带三角缺口的边框</title>
<style>
.out {
    display:block;
    width:0;
    height:0;
    border-left:6px dashed transparent;
    border-right:6px dashed transparent;
    border-top:0;
    border-bottom:7px solid #ccc;
    position:relative;
    top:-7px;
    left:50%;
}
.inner {
    position:absolute;
    border-left:6px dashed transparent;
    border-right:6px dashed transparent;
    border-top:0;
    border-bottom:7px solid #fff;
    left:-6px;
    top:2px;
}
div {
    position:relative;
    margin:0 auto;
    width:80px;
    height:100px;
    border:1px solid #ccc;
    border-radius:5px;
}
    
</style>
</head>

<body>
<div>
<span class="out">
    <span class="inner"></span>
</span>
</div>
</body>
</html>

三角缺口的边框

原文:http://www.cnblogs.com/liuxiaotao/p/4115239.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!