我正在尝试寻找在网站上提供图像的不同方法。
最直接的显然是使用 <img>
标签。
还有哪些其他方法?
我喜欢图像的提供方式 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.
有谁知道它是如何完成的以及我在哪里可以找到更多信息?
最佳答案
几个使用 jQuery 的灯箱示例是:
关于javascript - 在网站上使用 JavaScript 提供图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2282732/