2 回答
TA贡献1934条经验 获得超2个赞
拿走不谢!!!
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
.horizontal-line {
position: relative;
margin: 75px 0;
width: 100%;
height: 1px;
}
.horizontal-line:before {
content: "";
position: absolute;
background-image: linear-gradient(to left, #777, transparent);
left: 10%;
right: 50%;
height: 1px;
}
.horizontal-line:after {
content: "";
position: absolute;
background-image: linear-gradient(to right, #777, transparent);
left: 50%;
right: 10%;
height: 1px;
}
</style>
</head>
<body>
<div class="horizontal-line"></div>
</body>
</html>
TA贡献1794条经验 获得超7个赞
.obj::after {
content: "";
height: 0px;
width: 100%;
display: block;
border: 1px solid #A9A9A9;
margin: 5% auto;
border-radius: 50%
}
- 2 回答
- 0 关注
- 1587 浏览
添加回答
举报