Because the pseudo element cannot get the onclick event of the host element?

clipboard.png

< I > is a character icon element. : before is the icon

cannot be triggered in browsers that add onclick events to < I > . Why is this
because the pseudo element : before overrides the < I > tag?
Thank you for your answers ~

Oct.26,2021
Whether

I has a size, it is possible that what you see is for an element, and then I is not shown. You set a size for I, check whether I has a size, and then click to try

.
Menu