I have created an element in CSS with pseudo-class :after. Is there a way to cha开发者_如何学Gonge it's CSS properties from jQuery?
I thinks you want
$('#object_id:after').css({
color: blue
});
Your question seems a little vague. You can change the css properties of anything in the DOM by using the css()
method, like so:
$('#my-thing').css({
fontSize: 10em,
width: 100px
});
If you're asking about getting something with the :after
pseudoclass, refer to this answered quesion
Hope this helps you!
精彩评论