在表达式 Blend 中创建倾斜图像的超链接

发布于 2024-08-29 21:15:47 字数 224 浏览 0 评论 0原文

我正在 silverlight 中开发一个包含 6 个图像的导航菜单。当您将鼠标悬停在每个图像上时,每个图像都会变大,单击图像将带您进入网站上的页面。我正在做这件事的客户认为直的矩形图像很无聊,我向他展示了一种设计,其中我倾斜了每个图像,因此每个图像现在都是菱形形状。水平顶部和底部,侧面与垂直方向倾斜约 30 度。

我无法找出在鼠标悬停时生长每个图像的任何方法,而不在相邻图像上放置白色块。如有任何指点,将不胜感激。

I am developing a navigation menu in silverlight that has 6 images. As you mouseover each image grows and clicking on an image will take you to a page on the website. The customer I am doing this for decided that straight rectangular images were boring and I showed him a design where I have slanted each image so each one is now a rhomboid shape. Horizontal top and bottom with sides slanting about 30deg from vertical.

I have been unable to figure out any way of growing each image on mouseover without putting a white block over the adjacent images. Would be grateful for any pointers.

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

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

发布评论

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

评论(1

-柠檬树下少年和吉他 2024-09-05 21:15:48

如果您的图像是具有透明度的 PNG,为什么会出现白色块?

通常,如果相邻选项变大,唯一需要担心的问题是 Z 顺序,您可以通过将画布上的所有按钮设置为父级并为 Z 顺序和比例设置动画来解决此问题。

希望这有帮助。

If your images are PNGs with Transparency, why are you getting white blocks?

Normally the only issue to worry about is Z-order if adjacent options get larger, which you can fix by parenting all the buttons on a canvas and animating the Z-order as well as the scale.

Hope this helps.

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