Comments (4)
@seed-fe 多谢,我已经fork了一份,改了,大概思路也是这样的。
from viewer.
不要复杂化了,可以使用url
参数配置缩略图和原图。
from viewer.
好的。
from viewer.
可以自己制作一个查看原图的按钮(a标签),shown
事件时显示,hidden
事件时隐藏,viewed
事件时执行一个函数,取得当前显示的缩略图的data-original
属性中存储的原图的url,然后赋值给查看原图按钮的href属性,我自己试了一下,大致思路是这样的 @hujghc
from viewer.
Related Issues (20)
- 图片rorate效果 HOT 1
- 如何渲染整个页面任何位置的img,类似$("img").viewer()这种? HOT 1
- no css source map
- 怎么能自己配置定位位置 HOT 2
- IE10下,点击放大图片预览,不能出来 HOT 2
- jq 相关 只显示toolbar的部分功能
- 在react中使用jQuery动态更改图片路径遇到的问题
- 首次初始化是一切正常,因为业务需要等待异步图片加载完毕后再次初始化那批新加入的图片组,此时发现读取不到任何图片,请问该如何解决? HOT 1
- 在移动端中精灵图定位有差
- IE8 jq 一直报错 怎么回事? HOT 1
- 现在图片展示时的默认宽度是图片的原始宽度,如何让图片默认以屏幕的100%宽度展示呢 HOT 1
- 演示IE8版本下展示图背景色可以调整吗
- react项目报utilities.js:501 Uncaught ReferenceError: a is not defined HOT 1
- 一个bug,在iframe里面用到了viewer结果不能全屏,图片拉长 HOT 1
- iframe子页面不支持全屏展示图片
- 图片可以支持传参数设置默认旋转角度吗 HOT 1
- Cannot read property 'length' of undefined HOT 1
- 发现个问题,不知算不算bug HOT 1
- * Viewer.js 在IOS 13 中的BUG 重要 HOT 1
- 怎么设置一个盒子下面指定的src,有些图片不让点击放大 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from viewer.