您的位置:首页 > Web前端 > CSS

用css实现三角形

2014-08-26 17:49 393 查看
.tri_left {
position: absolute;
left: -7px;
width: 0;
height: 0;
border-top: 7px solid transparent;
border-right: 7px solid #9db5f4;
border-bottom: 7px solid transparent;
}

.tri_right {
position: absolute;
right: -7px;
width: 0;
height: 0;
border-top: 7px solid transparent;
border-left: 7px solid #9db5f4;
border-bottom: 7px solid transparent;
}

.tri_bottom {
position: absolute;
bottom: -7px;
width: 0;
height: 0;
border-left: 7px solid transparent;
border-right: 7px solid transparent;
border-top: 7px solid #9db5f4;
}

.tri_top {
position: absolute;
top: -7px;
width: 0;
height: 0;
border-left: 7px solid transparent;
border-right: 7px solid transparent;
border-bottom: 7px solid #9db5f4;
}

其他可参考:http://wchhlt.blog.163.com/blog/static/24401320118152272653/
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  css3 三角形