4.9w+
社区成员
Document doc = Jsoup.parse(“html代码字符串”);
Elements e= doc.select("[style*=background-image:url]");
for (int i = 0; i < e.size(); i++) {
Element node = e.get(i);
String style= node.attr("style");
//解析和获取style中的background-image:url
String newStyle = ""; //修改style中的background-image:url值
node.attr("style", newStyle );
}