我已经厌倦了试图使边界像在设计与CSS,任何人都有任何想法如何做到这一点。
我试着:
- 边缘图像
- after和before(伪元素)
- 我耍了很多花招但都没成功。
border-radius: 40px;
border-left: 2px solid red;
border-right: 2px solid red;
border-left-style: inset;
border-right-style: outset;
here the image border design
这可能吗!?
谢谢你的有趣。
2条答案
按热度按时间46scxncf1#
我不知道我是否理解正确,看看这种方法是否有助于解决您的问题
ia2d9nvy2#
使用伪元素的解决方案: