使用 javascript 或 jquery 进行图像缩放

发布于 2024-08-26 09:12:59 字数 190 浏览 5 评论 0原文

当我将鼠标悬停在该图像上时,我需要一些代码来缩放图像,我想缩放该图像。

考虑我在 y 页面中有 10 个图像,当我将鼠标放在第一个图像上时,该图像应该缩放,当我移动到第二个图像时,第二个图像应该像这样缩放...

我该怎么做,需要一些类似的 javascript 或 jquery .但不确定。我该怎么做...

请帮助我

I need some code to zoom an image when i mouse over that image, i want to zoom that image.

Consider i have 10 images in y page, when i put mouse over in first image that image should zoom and when i mov to second second image should zoom like that...

how can i do this, need some javascript or jquery something like that.But not sure.how can i do this...

Please help me

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

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

发布评论

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

评论(2

雨巷深深 2024-09-02 09:12:59

img:悬停{缩放:1.5}

img:hover { zoom: 1.5 }

森林散布 2024-09-02 09:12:59

此页面的功能非常相似。您必须单击图像才能对其进行缩放,这可能比当您将鼠标悬停在图像上时弹出图像更好。处理OnClick事件的函数是hs.expand

This page does something pretty similar. You have to click on the image to zoom it, which might be preferable to it just popping up when you mouse over it. The function that handles the OnClick event is hs.expand

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