我想在 <label for="street" string="Address"/>
之前 xpath "field_name"
但我可以 xpath 只是标签 :'(
<xpath expr="//label[@for='street']" position="after">
<field name="field_name"/>
</xpath
有人请帮助我,谢谢你花时间阅读我的话
最佳答案
试试这个,你可以给出位置,比如之后,之前,属性
<xpath expr="//label[@string='Address']" position="before">
<field name="field_name"/>
</xpath>
OR
您可以使用另一种方式,例如
<label for="street" position="before">
<field name="field_name"/>
<label for="field_name"/>
</label>
关于xpath - 如何在 <label for ="street"string ="Address"/> 之前 xpath 字段,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22502584/