放大图像 [英] Enlarge a image

查看:95
本文介绍了放大图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何按小图像图标放大图片?

How to enlarge a picture pressing small image icon?

推荐答案

如果您希望在鼠标悬停时显示类似工具提示的图像,可以尝试第二种方法此处描述: http://cssglobe.com/post/1695/easiest- tooltip-and-image-preview-using-jquery/ [ ^ ]( http://cssglobe.com/lab/tooltip /02/ [ ^ ]).将悬停事件更改为click事件,您将获得按下状态".
If you want a tooltip-like image to show up on mouseover, you could try the second method described here: http://cssglobe.com/post/1695/easiest-tooltip-and-image-preview-using-jquery/[^] (http://cssglobe.com/lab/tooltip/02/[^]). Change the hover event to click event and you get "pressing".


请参阅我对问题的评论.尚不清楚您真正需要什么.

无论如何,请通过代码示例查看我过去的答案:鼠标悬停时缩放图像 [^ ].

在此答案中,我假设您有一个图像文件,将其重新采样下来并将这两个版本存储在您的服务器上.然后,您可以根据鼠标位置交换两者.如果您需要其他行为,则可以轻松修改此代码.

—SA
Please see my comment to the question. It''s not clear what you really need.

Anyway, please see my past answer with the code sample: zooming image at mouse over[^].

In this answer, I assume you have an image file, re-sample it down and store both version on your server. Then you can swap the two depending on the mouse position. If you need some other behavior, you can easily modify this code.

—SA


这篇关于放大图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆