不想切整张图片,只把两个小球单独切出来,因为小球有闪动的效果。用了border-radius: 50%;
画出一个圆,但border-image
的小球仍然已正方形来排列。
代码放在jsbin上
http://jsbin.com/redolerota/1/edit?html,...
怪我咯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. . .
PHP中文网2017-04-17 11:38:37
border-image does not seem to support rounded corners, or you can try canvas drawing