zoukankan      html  css  js  c++  java
  • CSS实现矩形按钮右边缘的中间有个往里凹的小半圆

    <!DOCTYPE html>
    <html>
        <head>
        <meta charset="UTF-8">
        <title>test</title>
        <style>
          .btn {
            width: 100px;
            text-align: center;
            height: 50px;
            line-height: 50px;
            background: #000;
            color: #fff;
            position: relative;
          }
          .btn:after {
            position: absolute;
            content: '';
            width: 30px;
            height: 30px;
            background: #fff;
            top: 10px;
            right: -15px;
            border-radius: 100%;
          }
        </style>
    </head>
    <body>
     <div class="btn">
       button
     </div>
        </body>
    </html>

    test

    button
  • 相关阅读:
    Roads in the North
    Labyrinth
    英语写作(二)
    语法长难句笔记
    英语写作(一)
    MySQL笔记(二)
    MySQL笔记(一)
    Mybatis简单使用与配置
    Mybatis映射文件
    什么是serializable接口?
  • 原文地址:https://www.cnblogs.com/taojietx/p/6527691.html
Copyright © 2011-2022 走看看