Add HTML tag inside CSS Content property

前端 未结 2 1193
名媛妹妹
名媛妹妹 2020-12-10 13:37

I\'m looking for a way to add an HTML tag for CSS content property inside :after and :before.

Unlike this question which only discusses add

2条回答
  •  鱼传尺愫
    2020-12-10 14:09

    This is impossible. You cannot generate markup from CSS.

    It should also be unnecessary - stick your background image / icon font / whatever in the generated pseudo-element you have already.

提交回复
热议问题