CSS cut-off corners on image (<img> tag) without div
问题 I'm trying to get a CSS-only solution for a cut-off bottom right corner on every image in a page. So far, I have come up with this: img::after { content: url(/images/whitecorner.png); height: 20px; width: 20px; display: inline-block; float: right; } But the doesn't appear in the document anywhere. (I'm using the Chrome inspector). I hope someone can point me in the right direction. Thanks in advance! 回答1: Example You can not use ::after with img . Same with input s, this is because they are