linear-gradient

  1. background: #58a;
  2. background:
  3. linear-gradient(135deg, transparent 15px, #58a 0)
  4. top left,
  5. linear-gradient(-135deg, transparent 15px, #58a 0)
  6. top right,
  7. linear-gradient(-45deg, transparent 15px, #58a 0)
  8. bottom right,
  9. linear-gradient(45deg, transparent 15px, #58a 0)
  10. bottom left;
  11. background-size: 50% 50%;
  12. background-repeat: no-repeat;

image.png

radical-gradient

  1. background: #58a;
  2. background:
  3. radial-gradient(circle at top left,
  4. transparent 15px, #58a 0) top left,
  5. radial-gradient(circle at top right,
  6. transparent 15px, #58a 0) top right,
  7. radial-gradient(circle at bottom right,
  8. transparent 15px, #58a 0) bottom right,
  9. radial-gradient(circle at bottom left,
  10. transparent 15px, #58a 0) bottom left;
  11. background-size: 50% 50%;
  12. background-repeat: no-repeat;

image.png

clip-path

  1. background: #58a;
  2. clip-path: polygon(
  3. 20px 0, calc(100% - 20px) 0, 100% 20px,
  4. 100% calc(100% - 20px), calc(100% - 20px) 100%,
  5. 20px 100%, 0 calc(100% - 20px), 0 20px
  6. );

未来可以使用border-corner-shape

border-corner-shape: curve | bevel | notch | scoop

  1. .box {
  2. background-color: #3498DB;
  3. border-corner-shape: bevel;
  4. border-radius: 50% 50% 0% 50%;
  5. width: 200px;
  6. height: 200px;
  7. }

image.png