开发者

How to edit element created in CSS with :after using jQuery?

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!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜