Is it possible to create an angled corner in CSS?
问题 I am wondering if there is any way to create this shape with pure CSS. To extend this problem further, this shape needs to clip the image inside (think of it as a mask - but the grey border has to be visible). Or am I better off creating this in canvas/svg? 回答1: It's a little difficult keeping the border, but I managed to achieve a close effect using :before and :after elements with a parent container (:before and :after don't work on an img tag) Add a border to the container Add a before to