search

Home  >  Q&A  >  body text

css3 - 这个效果用 CSS 可以实现吗?border-image

不想切整张图片,只把两个小球单独切出来,因为小球有闪动的效果。用了border-radius: 50%;画出一个圆,但border-image的小球仍然已正方形来排列。

代码放在jsbin上
http://jsbin.com/redolerota/1/edit?html,...

PHP中文网PHP中文网2768 days ago504

reply all(7)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-04-17 11:38:37

    demo

    reply
    0
  • 大家讲道理

    大家讲道理2017-04-17 11:38:37

    Just use CSS to draw~
    https://jsbin.com/vozetu/

    reply
    0
  • 怪我咯

    怪我咯2017-04-17 11:38:37

    The round bottom and the small ball border are divided into two layers. For the small ball border layer, use :after to cover it. You don’t need border-image. . .

    reply
    0
  • 阿神

    阿神2017-04-17 11:38:37

    No, just practical pictures, where can you get so many things?

    reply
    0
  • PHP中文网

    PHP中文网2017-04-17 11:38:37

    border-image does not seem to support rounded corners, or you can try canvas drawing

    reply
    0
  • 怪我咯

    怪我咯2017-04-17 11:38:37

    Draw it on canvas

    reply
    0
  • 迷茫

    迷茫2017-04-17 11:38:37

    Try z-index layering

    reply
    0
  • Cancelreply