what does ::before really do?

前端 未结 3 401
忘掉有多难
忘掉有多难 2020-12-29 21:11

So I read the docs and probably understand the purpose of ::before and ::after. If my understanding is correct, they should always work in combinat

3条回答
  •  甜味超标
    2020-12-29 21:53

    I assume you are seeing that, because chrome inspector shows it for inspection: http://www.youtube.com/watch?v=AcKlJbmuxKo

    They are actually not in the original html served from the server but, added by Chrome Inspector there only.

    You can use those to view their box model on screen and the styles declared for them.

    Also check this: https://stackoverflow.com/a/19978698/774086

提交回复
热议问题