包含样式
contains表示包含什么样式属性,如果需要匹配多个属性,使用and即可。
div[contains(@style,\"FONT-SIZE: 9pt;\") and contains(@style, \"FONT-WEIGHT: bold;\")]
不包含某属性的element
tbody/tr/td[not(@colspan)][1]
获取具有某属性的element
/html/body/div/div[@type="Block"]
contains表示包含什么样式属性,如果需要匹配多个属性,使用and即可。
div[contains(@style,\"FONT-SIZE: 9pt;\") and contains(@style, \"FONT-WEIGHT: bold;\")]
tbody/tr/td[not(@colspan)][1]
/html/body/div/div[@type="Block"]