在表达式 Blend 中创建倾斜图像的超链接
我正在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您的图像是具有透明度的 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.