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偽元素