Comments (1)
感谢反馈。这是有意设计的。
很多网站使用 pseudo-elements 来给图片添加遮罩、小标签等缀饰,浮图秀目前通过 mouseover 事件侦测目标图片,这些叠加在图片之上的缀饰会阻碍浮图秀正常展示大图(鼠标移过时大图预览浮层将消失)。鉴于 pseudo-elements 并不能承载事件触发(相关标准截至本条回复发出时还没有被任何浏览器厂商支持),也不能承载 pseudo-class 样式,此“入侵性”方案预期不会严重影响页面原有功能。我能够想到的唯一产生影响的场景是:pseudo-elements 定位(absolute/fixed)于宿主元素之外,此时该方案将使这些 pseudo-elements 无法触发其宿主元素的鼠标事件及 pseudo-class 样式;然而这样的布局实现在实际应用中少之又少(出于语义、SEO等方面的考量),故而几经权衡后浮图秀决定采用目前的方案。
我正在试验另一种非入侵性的探测目标图片的方案,如果可行,未来浮图秀将不再通过 pointer-events: none 干预页面任何原有样式。
您如果发现任何基于此产生的严重影响,欢迎补充详述,我将重新评估该方案。
我将保持此 issue open 直到新的方案有一个结果。
from photoshow.
Related Issues (20)
- 视图模式:覆盖 HOT 1
- 右键保存不了图片 HOT 1
- 关于推特的tab打开高清图。发现插件打开后缀是jpg&name=large,真正高清原图应该是4096x4096或者orig吧? HOT 1
- Request: Change the toggle on/off just by clicking its icon HOT 6
- How don't preview small images like: budy icon /avatar, Interface images like caret etc HOT 2
- Don't inject this CSS: ::before, ::after { pointer-events: none !important;} HOT 3
- Flickr - Some thumbnails can't be previewed HOT 12
- 希望增加“以图搜图”的功能 HOT 1
- 4.32版本淘宝主图失效无法查看大图 HOT 1
- 疑问:微博图片无水印和大图是否能兼得 HOT 1
- [增加网站支持]蜜柑计划原图 HOT 1
- [增加网站支持]Bangumi番组计划 HOT 1
- Not working in google images HOT 1
- 不显示
- 小红书没有展示出最大尺寸照片
- 无法获取img属性完整URL地址
- [规则申请] QQ音乐封面大图
- 新功能想法 图片固定
- 抖店后台大图功能新版本失效
- 油管短视频部分功能无法进行交互
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 photoshow.