重叠图像与图像贴图相互遮挡

发布于 2024-10-08 22:26:55 字数 270 浏览 0 评论 0原文

信息:

  • 图像具有较大的透明部分,因此每个部分都必须重叠才能创建所需的效果。具体来说,每个图像的可点击部分都是奇怪的梯形形状,意味着相互挤压。
  • 图像的图像图的大部分与其他附近(梯形)图像的透明部分重叠。我不希望 z 索引的任何更改能够解决这个问题...
  • 将图像文件组合成一个更大的单个文件以覆盖每个部分的单个图像映射似乎不太理想,特别是因为我可能需要重新排序或重命名后来他们等等。不要介意悬停动画和其他可能性。

最好的解决方法是什么?

Information:

  • The images have large transparent sections, so each must be overlapped to create the needed effect. Specifically, the clickable portions of each image are in weird trapezoid shapes meant to be pressed up against each other.
  • Images have image maps with large portions being overlapped by the transparent portions of other nearby (trapezoid) images. I don't expect any change in z indexes will solve this...
  • Combining the image files into a larger single one to overlay a single image map for each section seems less than ideal, especially since I may need to re-order or rename them later and such. Never mind hover animations and other possibilities down the road.

What would be the best workaround?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

月朦胧 2024-10-15 22:26:55

好吧,经过一番修改,我想我找到了一个解决方案:我只是拿了一个 1px 透明 gif,将其放大以覆盖整个区域(当然,具有更高的 z 索引),然后将图像映射多边形映射到那。似乎有效。

Alright, after much tinkering I think I've found a solution: I just took a 1px transparent gif, scaled it up to cover the whole area (with a higher z-index, of course), and then mapped the image map polygons within that. Seems to work.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文