问问题
243 次
1 回答
1
$("#bodyCopy a[href^='http']").each(function() {
if ( $(this).find("img").length < 1 ) { // Count <img> children
// Continue only if fewer than one <img> within <a>
$(this).css({
background: "url(http://g.etfv.co/" + this.href + ") left center no-repeat",
"padding-left": "20px"
});
}
});
于 2012-07-25T17:48:08.343 回答