|
|
|
@ -54,7 +54,7 @@ public class BackgroundUtil {
|
|
|
|
|
*/ |
|
|
|
|
public static Map<String, String> parseBgAttr4BlockTag(ChainedProperties props) { |
|
|
|
|
Map<String, String> backgroundRules = new HashMap<String, String>(); |
|
|
|
|
String value = props.getPropertyFromChain("div", "bgcolor"); |
|
|
|
|
String value = props.getPropertyFromChain("div", "background-color"); |
|
|
|
|
if (value != null) { |
|
|
|
|
backgroundRules.put("background-color", value); |
|
|
|
|
} |
|
|
|
@ -67,10 +67,6 @@ public class BackgroundUtil {
|
|
|
|
|
Map<String, String> backgroundStyles = CSSUtils.processBackground(value); |
|
|
|
|
backgroundRules.putAll(backgroundStyles); |
|
|
|
|
} |
|
|
|
|
value = props.getPropertyFromChain("div", "background-color"); |
|
|
|
|
if (value != null) { |
|
|
|
|
backgroundRules.put("background-color", value); |
|
|
|
|
} |
|
|
|
|
value = props.getPropertyFromChain("div", "background-position"); |
|
|
|
|
if (value != null) { |
|
|
|
|
backgroundRules.put("background-position", value); |
|
|
|
|