如何使侧面边框像波纹管一样倾斜?
/---------------------\
/ \
/ \
\ vertically center text /
\ /
\---------------------/
最佳答案
您可以使用clip-path
(检查MDN)。
示例:clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
关于html - 如何在div中自定义边框,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/47543374/