css 一个需求要在uniapp里面给一张图片设置很多可以点击的点,每个点有不同的点击事件 只能想到给图片一个相对定位,然后给每个点一个绝对定位,进行一点点的调整 但是手机分辨率改变之后,会有轻微的错位,top left的单位用的是百分比 求教有什么方法可以使得绝对定位不受分辨率的影响呢 .point { position: absolute; width: 20px; height: 20px; background-color: red; z-index: 99999; } .map { position: relative; z-index: -1; } .mh { @extend .point; top: 6%; right: 26%; } .bj { @extend .point; top: 6%; right: 26%; } .dh { @extend .point; top: 6%; right: 26%; }