如何将css中使用的值转换为jquery [英] how to get the values used in css to jquery
本文介绍了如何将css中使用的值转换为jquery的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
先生,
如何才能将css中使用的值输入jquery.if任何人都知道请帮助我
sir,
how can i get the values used in css to jquery.if any one knows please help me
推荐答案
请详细说明你的要求。
你想要的价值是多少。
// set css
Please elaborate your requirements.
what the values that you want to get.
//set css
(p)。css({color:#ff0011,background:blue});
//获取css
("p").css({ color: "#ff0011", background: "blue" });
//get css
(#id)。css(z-index)
如果您仍有任何疑问或需要任何帮助,请发送邮件给我。
("#id").css("z-index")
If you still hava any question or need any help,send message to me .
这篇关于如何将css中使用的值转换为jquery的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文