css尖头样式




<!DOCTYPE html>

<html style="font-size=12px">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta charset="utf-8">
<title>Hello World App</title>
<style type="text/css">
.uu-mark{
position: relative;
height: 1.875rem;
overflow: hidden;
font-size: 16px;
}
   .uu-mark .left-rian{
    position: relative;
    z-index: 2;
   }
   .uu-mark .right-rian{
    position: relative;
    left: -0.625rem;
    z-index: 1;


   }
.uu-mark .right-rian div,
.uu-mark .left-rian div{
float: left;
}
.uu-mark .left-rian div:nth-child(1){
width: 3.75rem;
height: 1.875rem;
}
.uu-mark .right-rian div:nth-child(2),
.uu-mark .left-rian div:nth-child(2){
width: 0;
height:0;
line-height:0;
overflow:hidden;
border-width:0.9375rem 0px 0.9375rem 0.9375rem;
border-style:solid;
}


.uu-mark .right-rian div:nth-child(1){
width: 1.875rem;
height:0px;
line-height:0;
overflow:hidden;
border-width:0.9375rem;
border-style:solid;
border-color: yellow yellow yellow white;
}
.uu-mark .yellow div:nth-child(1){
border-color: yellow yellow yellow white;
background: yellow;
}
.uu-mark .yellow div:nth-child(2){
border-color:transparent transparent transparent yellow;
}
.uu-mark .green div:nth-child(1){
border-color: #13d569 #13d569 #13d569 white;
background: #13d569;
}
.uu-mark .green div:nth-child(2){
border-color:transparent transparent transparent #13d569;
}


</style>
</head>
<body>
<div class="uu-mark">
<div class="left-rian green">
<div></div>
<div></div>
</div>
<div class="right-rian yellow">
<div></div>
<div></div>
</div>
</div>


</body>
</html>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值