css静态形状(月亮、心、箭头、锁、对话泡泡、太极、放大镜、指示器)

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    /* .css-logo{
        display: flex;
        align-items: center;
    } */
/* 月亮 */
.moon{
    width: 80px;
    height: 80px;
    border-radius: 50%;
    box-shadow: 15px 15px 0 0 skyblue;
    margin: 30px;
}
/* 心 */
.heart{
    position: relative;
    width: 100px;
    height: 90px;
    margin: 30px;
}

.heart:after,.heart:before{
    position: absolute;
    left: 50px;
    top: 0px;
    width: 50px;
    height: 80px;
    background-color: skyblue;
    transform: rotate(-45deg);
    transform-origin: 0 100%;
    content: '';
    border-radius: 50px 50px 0 0;
}.heart:after {
    left: 0;
    transform: rotate(45deg);
    transform-origin: 100% 100%;
}
/* 箭头 */
.curvedarrow {
    position: relative;
    width: 0;
    height: 0;
    border-top: 9px solid transparent;
    border-right: 9px solid skyblue;
    transform: rotate(10deg);
    margin: 30px;
    
}

.curvedarrow:after {
    position: absolute;
    top: -12px;
    left: -9px;
    width: 12px;
    height: 12px;
    content: '';
    border: 0 solid transparent;
    border-top: 3px solid skyblue;
    border-radius: 20px 0 0 0;
    transform: rotate(45deg);
}
/* 锁 */
.lock {
    position: relative;
    width: 90px;
    height: 65px;
    border: 18px solid skyblue;
    border-right-width: 37px;
    border-left-width: 37px;
    border-radius: 10px;
    box-sizing: border-box;
    top: 35px;
    left: 30px;
}

.lock:before {
    position: absolute;
    top: -60px;
    left: 50%;
    width: 70px;
    height: 60px;
    content: '';
    border: 12px solid skyblue;
    border-top-left-radius: 35px;
    border-top-right-radius: 35px;
    box-sizing: border-box;
    transform: translateX(-50%);
}

.lock:after {
    position: absolute;
    top: -5px;
    left: 50%;
    width: 25px;
    height: 40px;
    content: '';
    border: 5px solid skyblue;
    border-radius: 12px;
    box-sizing: border-box;
    transform: translateX(-50%);
}
/* 对话泡泡 */
.talkbubble {
    position: relative;
    width: 120px;
    height: 80px;
    background-color: skyblue;
    border-radius: 10px;
    margin: 53px 30px;
}

.talkbubble:before {
    position: absolute;
    top: 26px;
    right: 100%;
    width: 0;
    height: 0;
    content: '';
    border-top: 13px solid transparent;
    border-right: 26px solid skyblue;
    border-bottom: 13px solid transparent;
}
/* 太极 */
.supremepole {
    position: relative;
    width: 96px;
    height: 48px;
    background-color: #fff;
    border-width: 2px 2px 50px 2px;
    border-style: solid;
    border-color: #000;
    border-radius: 50%;
    box-sizing: content-box;
}

.supremepole:before {
    position: absolute;
    top: 50%;
    left: 0;
    width: 12px;
    height: 12px;
    content: '';
    background-color: #fff;
    border: 18px solid #000;
    border-radius: 50%;
    box-sizing: content-box;
}

.supremepole:after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    content: '';
    background-color: #000;
    border: 18px solid #fff;
    border-radius: 50%;
    box-sizing: content-box;
}
/* 放大镜 */
.magnifying-glass {
    position: relative;
    width: 0.4em;
    height: 0.4em;
    font-size: 10em;
    border: 0.1em solid skyblue;
    border-radius: 0.35em;
    box-sizing: content-box;
}

.magnifying-glass:before {
    position: absolute;
    right: -0.25em;
    bottom: -0.1em;
    width: 0.35em;
    height: 0.08em;
    content: '';
    background-color: skyblue;
    transform: rotate(45deg);
}
/* 指示器 */
.pointer {
    position: relative;
    width: 120px;
    height: 40px;
    background-color: skyblue;
    margin: 30px 0;
}

.pointer:before {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 0;
    content: '';
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    border-left: 20px solid #fff;
}

.pointer:after {
    position: absolute;
    right: -20px;
    bottom: 0;
    width: 0;
    height: 0;
    content: '';
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    border-left: 20px solid skyblue;
}
</style>
<body>
    <div class="css-logo">
        <div class="moon"></div>
        <div class="heart"></div>
        <div class="curvedarrow"></div>
        <div class="lock"></div>
        <div class="talkbubble"></div>
        <div class="supremepole"></div>
        <div class="magnifying-glass"></div>
        <div class="pointer"></div>
    </div>
</body>
</html>

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值