码农知识堂 - 1000bd
  •   Python
  •   PHP
  •   JS/TS
  •   JAVA
  •   C/C++
  •   C#
  •   GO
  •   Kotlin
  •   Swift
  • 小DEMO:css制作圆滑梯形按钮


    代码:

    1. <div class="pull-btn-box">
    2. <div class="pull-btn">
    3. <svg width="12" height="12">
    4. <path d="M0 0 L6 11 L12 0" stroke="#A6A6A6" stroke-width="2" fill="none"/>
    5. svg>
    6. div>
    7. div>
    1. .pull-btn-box {
    2. position: absolute;
    3. top: 1px;
    4. left: 50%;
    5. transform: translate(-50%, -100%);
    6. .pull-btn {
    7. cursor: pointer;
    8. position: relative;
    9. border: 2px solid #D8D8D8;
    10. border-radius: 10px 10px 0 0;
    11. width: 84px;
    12. height: 45px;
    13. background-color: white;
    14. transform-origin: center bottom;
    15. transform: perspective(80px) rotateX(50deg);
    16. border-bottom: none;
    17. display: flex;
    18. align-items: center;
    19. justify-content: center;
    20. img {
    21. width: 18px;
    22. }
    23. &::before {
    24. content: '';
    25. position: absolute;
    26. width: 10px;
    27. height: 10px;
    28. bottom: 0;
    29. left: -10px;
    30. background: radial-gradient(circle at 0 0, transparent 8px 0, #D8D8D8 8px 0, #D8D8D8 10px 0, white 10px 0,);
    31. }
    32. &::after {
    33. content: '';
    34. position: absolute;
    35. width: 10px;
    36. height: 10px;
    37. bottom: 0;
    38. right: -10px;
    39. background: radial-gradient(circle at 100% 0, transparent 8px 0, #D8D8D8 8px 0, #D8D8D8 10px 0, white 10px 0,);
    40. }
    41. }
    42. }

  • 相关阅读:
    如何在 windows 中安装 VMware Workstation Pro 16.2.4
    OpenCV3-颜色模型与转换-通道分离与合并
    领域模型优先于数据库表
    PostgreSQL 逻辑复制模块(一)
    如何将项目部署到服务器上(全套教程)
    ArcGIS API for JavaScript官网解析
    你在犹豫吗?--疫情换工作后记
    PostgreSQL — 安装及常用命令
    栈与队列(JAVA)
    【数据结构】排序算法(一)—>插入排序、希尔排序、选择排序、堆排序
  • 原文地址:https://blog.csdn.net/qq_31851435/article/details/134424618
  • 最新文章
  • 攻防演习之三天拿下官网站群
    数据安全治理学习——前期安全规划和安全管理体系建设
    企业安全 | 企业内一次钓鱼演练准备过程
    内网渗透测试 | Kerberos协议及其部分攻击手法
    0day的产生 | 不懂代码的"代码审计"
    安装scrcpy-client模块av模块异常,环境问题解决方案
    leetcode hot100【LeetCode 279. 完全平方数】java实现
    OpenWrt下安装Mosquitto
    AnatoMask论文汇总
    【AI日记】24.11.01 LangChain、openai api和github copilot
  • 热门文章
  • 十款代码表白小特效 一个比一个浪漫 赶紧收藏起来吧!!!
    奉劝各位学弟学妹们,该打造你的技术影响力了!
    五年了,我在 CSDN 的两个一百万。
    Java俄罗斯方块,老程序员花了一个周末,连接中学年代!
    面试官都震惊,你这网络基础可以啊!
    你真的会用百度吗?我不信 — 那些不为人知的搜索引擎语法
    心情不好的时候,用 Python 画棵樱花树送给自己吧
    通宵一晚做出来的一款类似CS的第一人称射击游戏Demo!原来做游戏也不是很难,连憨憨学妹都学会了!
    13 万字 C 语言从入门到精通保姆级教程2021 年版
    10行代码集2000张美女图,Python爬虫120例,再上征途
Copyright © 2022 侵权请联系2656653265@qq.com    京ICP备2022015340号-1
正则表达式工具 cron表达式工具 密码生成工具

京公网安备 11010502049817号