Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个地图层的图像。我使用画布和图像覆盖(画布插件和覆盖插件)覆盖区域。但是,当我滚动地图楼层时,叠加层会停留在单击它们的位置,它们不会随着滚动而移动。因此,当我滚动覆盖和画布的图像时,它们根据浏览器(绝对位置)定位,而不是根据图像(相对)定位。
只有一种解决方案:由于叠加层插件不允许将位置更改为相对位置而不是绝对位置,因此浏览器本身需要允许水平溢出。