//*[@class='textDiv']/a[count(./span/text())>0 and count(following-sibling::a[position()=1]/strong/text())>0 and string-length(./span/text())>0]
复制代码
无法区分当前位置和下一位置,理想的是
//*[@class='textDiv']/a[count(.//*[@class='STYLE15']/text())>0 and count(following-sibling::a[position()=1]/strong/text())>0 and string-length(.//*[@class='STYLE15']/text())>0]
共 10 个关于本帖的回复 最后回复于 2017-2-9 12:02