css不规则圆角矩形

在这里插入图片描述

   <div class="skew"></div>
.skew {
   
  position: relative;
  width: 120px;

  &::after {
   
    content: "";
    position: absolute;
    top: 0;
    left: 40px;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    background: orange;
    transform: skewX(164deg);
    width: 100px;
    height: 100px;
  }
  &::before {
   
    content: "";
    position: absolute;
    top: 0;
    left: 13px;
    width: 100px;
    height: 100px;
    border-radius: 20px;
    background: orange;
  }
}

这个收集的css 效果是真的多 https://github.com/chokcoco/iCSS强烈推荐

相关推荐

  1. CSS3设置圆角

    2024-02-07 13:36:02       51 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-02-07 13:36:02       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-02-07 13:36:02       100 阅读
  3. 在Django里面运行非项目文件

    2024-02-07 13:36:02       82 阅读
  4. Python语言-面向对象

    2024-02-07 13:36:02       91 阅读

热门阅读

  1. c++小游戏

    2024-02-07 13:36:02       39 阅读
  2. 冯唐《金线》,中国版金字塔原理

    2024-02-07 13:36:02       50 阅读
  3. Lua迭代器以及各种源函数的实现

    2024-02-07 13:36:02       55 阅读
  4. 极狐GitLab 与 Datadog 的集成配置

    2024-02-07 13:36:02       49 阅读
  5. oracle视图二次查询慢

    2024-02-07 13:36:02       43 阅读
  6. c++病毒代码

    2024-02-07 13:36:02       51 阅读
  7. c# 缓存帮助类

    2024-02-07 13:36:02       47 阅读