javascript - 在网站上使用 JavaScript 提供图像

标签 javascript jquery image

我正在尝试寻找在网站上提供图像的不同方法。

最直接的显然是使用 <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.

有谁知道它是如何完成的以及我在哪里可以找到更多信息?

最佳答案

关于javascript - 在网站上使用 JavaScript 提供图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2282732/

相关文章:

Javascript:如何在 do while 循环中访问函数范围的变量?

javascript - 使用 AngularJs 在选定的复选框上计算摘要

javascript - 从数组中丢失数据

javascript - JQuery 代码在 jsfiddle 中正常工作,但在浏览器中即使使用 $(window).load(function()) 也不能正常工作

image - 使用 Webpack 在 React 中加载图像

javascript - 如何运行encodeURIComponent但有一个异常?

javascript - 循环 Bootstrap 工具提示元素,同时显示和隐藏它们

javascript - 列表打开或关闭时如何添加加号和减号图标?

python - 如何显示图片并获取鼠标点击坐标

wpf - WPF 中的 9 切片图像