img标签使用伪元素失效
W3C官网解释到:
Note. This specification does not fully define the interaction of :before and :after with replaced elements (such as IMG in HTML). This will be defined in more detail in a future specification.
对替换元素,如img, 暂时不支持after和before伪元素