老师 帮忙看下代码
来源:2-11 编程练习
lcy_18
2021-03-03 13:07:27
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>边框</title>
<style>
/*补充代码*/
.box{
position: relative;
}
.bd1,.bd2{
width: 0;
height: 0;
border: 100px solid transparent;
border-radius: 85px;
}
.bd1{
border-left-color: red;
}
.bd2{
border-right-color: red;
position: absolute;
top: 0;
left: -20px;
}
</style>
</head>
<body>
<div class="box">
<div class="bd1"></div>
<div class="bd2"></div>
</div>
</body>
</html>
1回答
同学你好,代码效果实现是正确的,继续加油,祝学习愉快!
相似问题