xg:l<=ref(l,1);上面的公式就是你要的公式,但我觉得没那么点单吧,一点技术含量都没有。按照你给出的图例来看我给你再做一个,看你是否满意。xg:ref(c,2)>ref(o,2)and (ref(h,2)-ref(c,2))<(ref(o,2)-ref(l,2))and ref(c,1)>ref(o,1)and (ref(h,1)-ref(c,1))<(ref(o,1)-ref(l,1))and ref(l,1)>ref(l,2)and c