<span class="stMainServices st-facebook-counter" style="background-image: url(http://w.sharethis.com/images/facebook_counter.png);"> <img src="http://w.sharethis.com/images/check-big.png" style="position: absolute; top: -7px; right: -7px; width: 19px; height: 19px; max-width: 19px; max-height: 19px; display: none;"></span>
我不能用我自己的形象改變的背景圖像(facebook_counter)。 我試圖通過使用 .css(「background-image」,「url ...」)和.attr(「style」,「new style」)來改變它,但也許我使用的選擇器部分是錯誤的。sharethis jQuery的背景圖像改變
此外,我通過在wordpress安裝中使用wp socializer來獲得此代碼。 謝謝
你正在使用什麼選擇器? –
似乎在這裏工作..'.css()'應該工作http://jsfiddle.net/GadTt/ –