从CSS插入HTML [英] Insert HTML from CSS
本文介绍了从CSS插入HTML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法从CSS(3)插入HTML元素,dom或代码?
Is there any way to insert an HTML element, dom or code from CSS(3)?
推荐答案
文字而不是HTML):
Content (for text and not html):
http: //www.quirksmode.org/css/content.html
但是为了清楚起见,这是不好的做法。它支持整个浏览器是摇摇欲坠,一般不是一个好主意。但是,如果你真的需要使用它,那就是。
But just to be clear, it is bad practice. It's support throughout browsers is shaky, and it's generally not a good idea. But in cases where you really have to use it, there it is.
这篇关于从CSS插入HTML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文