纯css实现红唇效果
代码语言:html
所属分类:布局界面
代码描述:纯css实现红唇效果
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
:root {
--main-lip-color: #8e0e0e;
--main-teeth-color: #bbbbbb;
--main-background-color: #f7a4ac;
}
body{
background-color: var(--main-background-color);
}
.box {
width: 80vh;
height: 80vh;
margin: auto;
position: relative;
display: block;
}
.circle-group-pos {
position: absolute;
top: 30%;
left: 40%;
}
.circle-left {
height: 50px;
width: 50px;
background-color: var(--main-lip-color);
border-radius: 50%;
position: absolute;
top: 15px;
}
.circle-right {
height: 50px;
width: 50px;
background-color: var(--main-lip-color);
border-radius: 50%;
position: absolute;
left: 45px;
top: 18px;
}
.triangle-left {
width: 0;
height: 0;
border-top: 60px solid transparent;
border-right: 92px solid var(--main-lip-color);
border-bottom: 60px solid transparent;
position: absolute;
right: 31px;
}
.triangle-right {
width: 0;
height: 0;
border-top: 100px solid transparent;
border-left: 54px solid var(--main-lip-color);
border-bottom: 40px solid transparent;
position: absolute;
left: 44px;
top: 8px;
}
.triangle-down {
width: 0;
height: 0;
border-left: 195px sol.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0