low image quality in safari, jssor slider is used(safari 中图像质量低,使用了 jssor 滑块)
问题描述
我在我的网站上使用了 jssor 滑块,它在除 safari 之外的所有浏览器中都能正常工作,在 safari 中图像几乎没有模糊.我的图像尺寸大于滑块 Div,图像尺寸为 (1207 x 708) 但 div 为 900 x 600 像素.请帮助我如何解决此问题
将此添加到您的滑块选项列表中:
<上一页>$HWA:假HWA 是硬件加速,根据 JSSOR 参考 - link
我通过另一个 S.O. 发现了这个选项.JSSOR 发帖回应想要阻止-webkit-transform: perspective(2000);"的人被注入到他们的代码中,确实如此.因此,它可能会影响 3D 过渡(未经测试).
似乎设置 $HWA: false
也会禁用图像重采样,从而允许您的 Retina 兼容图像正确显示.
I have used jssor slider on my website which works fine in all browsers except safari, in safari images are little blur. My image size is bigger than slider Div, image size is (1207 x 708) but div is of 900 x 600 px. please help me how can i fix this issue
Add this to your list of slider options:
$HWA: false
HWA is HardWare Acceleration, according to the JSSOR reference - link
I discovered this option via another S.O. post from JSSOR in response to someone who wanted to prevent "-webkit-transform: perspective(2000);" being injected into their code, which it does. It may, therefore, affect 3D transitions (untested).
It appears that setting $HWA: false
also disables image resampling, thus allowing your Retina-compatible images to show correctly.
这篇关于safari 中图像质量低,使用了 jssor 滑块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:safari 中图像质量低,使用了 jssor 滑块


基础教程推荐
- 动态更新多个选择框 2022-01-01
- 角度Apollo设置WatchQuery结果为可用变量 2022-01-01
- 我什么时候应该在导入时使用方括号 2022-01-01
- 在 JS 中获取客户端时区(不是 GMT 偏移量) 2022-01-01
- 在for循环中使用setTimeout 2022-01-01
- 悬停时滑动输入并停留几秒钟 2022-01-01
- 有没有办法使用OpenLayers更改OpenStreetMap中某些要素 2022-09-06
- 当用户滚动离开时如何暂停 youtube 嵌入 2022-01-01
- Karma-Jasmine:如何正确监视 Modal? 2022-01-01
- 响应更改 div 大小保持纵横比 2022-01-01