Insert HTML from CSS

后端 未结 5 999
天涯浪人
天涯浪人 2020-12-01 11:48

Is there any way to insert an HTML element, dom or code from CSS(3)?

5条回答
  •  无人及你
    2020-12-01 12:19

    An alternative - which may work for you depending on what you're trying to do - is to have the HTML in place and then use the CSS to show or hide it depending on the class of a parent element.

    OR

    Use jQuery append()

提交回复
热议问题