一位朋友给了我一个使用jquery代码的解决方案:
.css({ backgroundColor: '#ddd' })取而代之的是,我想使用背景图像。我如何修改jquery代码来实现这一点呢?
我想做一些像这样的事情
.css({ backgroundImg: 'images/newsletter-dropdown.jpg' })谢谢!
发布于 2010-05-05 13:17:53
简单如馅饼:
$( element ).css({ 'background-color': 'transparent', 'background-image': 'images/newsletter-dropdown.jpg' });https://stackoverflow.com/questions/2770787
复制相似问题