0
4

1 に答える 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 に答える