被咬一口的按钮
作者:
子心_ | 来源:发表于
2019-06-12 21:56 被阅读0次<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>被咬一口的按钮</title>
<style>
* {
margin:0;
padding: 0;
}
.btn {
position: relative;
width: 120px;
height: 40px;
line-height: 40px;
font-size: 16px;
font-family: Arial;
font-weight: bold;
background-color: #000;
color: #fff;
margin: 10px auto;
text-align: center;
}
.btn::after {
content: "";/*关键点*/
position: absolute;
top: 10px;
right: -10px;
width: 20px;
height: 20px;
border-radius: 50%;
background-color: #fff;
}
</style>
</head>
<body>
<div class="btn">button</div>
</body>
</html>
效果:

btn.PNG
本文标题:被咬一口的按钮
本文链接:https://www.haomeiwen.com/subject/zdarfctx.html
网友评论