用css3怎么画一个这样的图标!!谢谢!!!
正在学习前端。尝试做一下。
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>CSS画标签</title>
<link rel="stylesheet" href="">
<style>
.content{
width:150px;
height:50px;
position:relative;
left:200px;
background-color: #ccc;
border-radius:0 5px 5px 0;
}
.angel{
position: absolute;
width:0;
height:0;
border-top: 25px solid transparent;
border-bottom:25px solid transparent;
border-right:25px solid #ccc;
left:-25px;
}
.circle{
background-color: #fff;
height:10px;
width:10px;
border-radius: 50%;
position:absolute;
top:20px;
}
</style>
</head>
<body>
<div class="content">
<div class="angel"></div>
<div class="circle"></div>
</div>
</body>
</html>
3 回答5.4k 阅读✓ 已解决
4 回答1.8k 阅读✓ 已解决
2 回答2.1k 阅读✓ 已解决
3 回答1.2k 阅读✓ 已解决
5 回答2k 阅读
2 回答982 阅读✓ 已解决
3 回答874 阅读✓ 已解决