<style>
.price{
text-align: center;
width: 160px;
height: 24px;
line-height: 24px;
border: 1px solid red;
margin: 100px auto;
}
.miaosha{
position: relative;
float: left;
width: 90px;
height: 100%;
background-color: red;
color: #fff;
font-weight: 700;
}
.miaosha i{
position: absolute;
width: 0;
height: 0;
border-color:transparent #fff transparent transparent;
border-style: solid;
border-width: 24px 10px 0 0;
top: 0;
right: 0;
}
.old{
color: gray;
font-size: 12px;
text-decoration: line-through;
}
</style>
</head>
<body>
<div class="price">
<span class="miaosha">
¥666
<i></i>
</span>
<span class="old">¥999</span>
</div>
</body>
css 京东三角
最新推荐文章于 2024-02-21 20:49:08 发布