XPATH解析技巧
2018-08-16 本文已影响0人
blade_he
包含样式
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"]