a543462378 2021-12-27 11:12 采纳率: 82.3%
浏览 116
已结题

只用html和css怎么做出这个效果?

img


突然接到这个要求,只用HTML和css做这个样式,希望给下指点,真想不出这东西怎么弄

  • 写回答

7条回答 默认 最新

  • CSDN专家-文盲老顾 2021-12-27 11:46
    关注

    img

    
      <!--黑背景-->
      <div style="background:black;height:100vh;width:100%;">
        <!--红色圆-->
        <div style="background:red;width:300px;height:300px;border-radius:150px;overflow:hidden;">
            <!--白色圆-->
            <div style="background:white;width:300px;height:300px;border-radius:150px;margin-top:200px;">
            </div>
        </div>
        <!--白色柄-->
        <div style="width:30px;height:200px;background:white;margin-left:135px;margin-top:-10px;"></div>
      </div>
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(6条)

报告相同问题?

问题事件

  • 系统已结题 1月4日
  • 已采纳回答 12月27日
  • 创建了问题 12月27日