简体   繁体   中英

Serving images with JavaScript on a website

I'm trying to find different ways to serve images on a web site.

The most straight forward is obviously to use the <img> tag.

What other methods exist?

I like the way images are served here :

When a user clicks on the image, a larger version is presented and the surrounding screen darkens. There are also 'next image' and 'previous image' buttons in the top corners of the image.

Does anyone know how it is done and where I can find out more?

通常称为Lightbox,有很多选择。

A couple examples of lightboxes using jQuery are:

它也称为模式窗口,这是一些

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM