想要那种用css来写直角边框,有什么好的办法来写吗?
5条回答 默认 最新
- 撸空投的菜鸟 2022-08-26 16:47关注
.div { position: relative; } .div:before{ content: ""; position: absolute; left: 0; width: 30px; height: 10px; border: 1px solid red; border-radius: 4px; border-bottom: 0; border-right: 0; border-top-right-radius: 0; border-bottom-left-radius: 0; }
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 1无用