Using :before and :after CSS selector to insert HTML [duplicate]

10/14 01:26
阅读数 0

问题:

This question already has answers here : 这个问题在这里已经有了答案
Closed 2 years ago . 2年前关闭。

I'm wondering if the following is possible.我想知道以下是否可能。 I know it doesn't work, but maybe I'm not writing it in the correct syntax.我知道它不起作用,但也许我没有用正确的语法编写它。

li.first div.se_bizImg:before{
    content: "<h1>6 Businesses Found <span class="headingDetail">(view all)</span></h1>";
}

Any way of doing this?有没有办法做到这一点?


解决方案:

参考一: https://en.stackoom.com/question/Obzt
参考二: https://stackoom.com/question/Obzt
展开阅读全文
打赏
0
0 收藏
分享
加载中
更多评论
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部