图片弹出,没有回发?
我正在制作自己的相册,并且想要复制知名照片共享网站的功能。我正在寻找的是 - 他们是如何做到这一点的?
http://www.flickr.com/photos/cdotlister/6445556533/in/ photostream/
这是我的照片。如果您单击照片,您会得到放大版本。第一个和大的文件大小相同,因此必须是同一个文件。我认为较小的一个是使用 html 调整大小的。 (图像高度和宽度)。然后弹出的版本可能是实际图像大小。
但是,当图像弹出时 - 调整窗口大小。它保持居中。
我想复制这个......我想它是ajax?我想知道如何在图像上单击事件,显示同一图像的弹出版本。
I am making my own photo album, and want to copy the functionality of a well known photo sharing site. What I am looking for is - how do they do this?
http://www.flickr.com/photos/cdotlister/6445556533/in/photostream/
That's a photo of mine. If you click the photo, you get an enlarged version. The initial one and the large one are the same file size, so, must be the same file. I think the smaller one is resized using html. (image height and width). And then the popup version is probably the actaul image size.
However, when the image is popped up - resize your window. It stays centred.
I'd like to replicate this... I assume it'd ajax? I'd like to know how I can have a click event on the image, display a popped up version of the same image.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看一下 jQuery 灯箱插件。
http://leandrovieira.com/projects/jquery/lightbox/
Take a look at jQuery lightbox pluggin.
http://leandrovieira.com/projects/jquery/lightbox/