jquery或者js怎么抓取after伪类的内容?
比如定义了以下CSS,添加伪类after
<style>
.test:after{
content:'i am after';
height:20px;
}
</style>
再写了个DIV
<div class="test" style="height:100px;width:100px;border:1px solid red">hello world</div>
DIV里面显示的内容变成了
hello worldi am after
而$('.test :first').html()显示的依然是hello world,用firebug查看也是helloworld。请问各位大神要怎样才能获取得到对象after里面的东西?包括content height等内容。。
求教各位大神了。。