JSFiddle - React, Tailwind, and code Playground
HTML
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/themes/ui-lightness/jquery-ui.css">
<div>aaa</div>
<div class='bg'>aaa</div>
<div>aaa</div>
<span class='bg'>aaa</span>
<p class='bg'>aaa</p>
<div>aaa</div>
CSS
.bg{
background-image:url(http://dummyimage.com/120x90/eee/fff.png&text=my+image);
}
.bg_found {
border: 2px dashed blue;
margin: 4px;
}
JavaScript
$('*').filter(function() {
if (this.currentStyle)
return this.currentStyle['backgroundImage'] !== 'none';
else if (window.getComputedStyle)
return document.defaultView.getComputedStyle(this,null)
.getPropertyValue('background-image') !== 'none';
}).addClass('bg_found');