响应式灯箱无法在iPhone中工作
Responsive lightbox not working in iPhones
我们正在尝试制作一个灯箱响应
这是最初的CSS:
#mageworxLightbox{ position: absolute; left: 0; width: 100%; z-index: 60002; text-align: center; line-height: 0; }
#mageworxLightbox img{ width: auto; height: auto;}
#mageworxLightbox a img{ border: none; }
#mageworxOuterImageContainer{ position: relative; background-color: #fff; width: 250px; height: 250px; margin: 0 auto; }
#mageworxImageContainer{ padding: 10px; }
已编辑为:
#mageworxLightbox{ position: absolute; left: 0; width: 100%; height: auto !important; z-index: 60002; text-align: center; line-height: 0; }
#mageworxLightbox img{ width: auto; height: auto;}
#mageworxLightbox a img{ border: none; }
#mageworxOuterImageContainer{ width:80% !important; height: auto !important; position: relative; max-width: 600px; background-color: #fff; margin: 0 auto; }
#mageworxImageDataContainer{ width: 80% !important; height: auto !important; max-width: 600px; line-height: 2em; }
#mageworxImageContainer{ padding: 10px; height: auto !important; }
但关闭按钮在iPhone等设备上已经不起作用了,我不明白为什么;同样在横向模式下,图像的大小调整不正确。
这是我们的页面:http://www.arredodesignonline.com/it/letto-design-imbottito-heart.html
(要查看灯箱,请在下拉列表中选择"modello letto",点击其中的任何图像都会起作用)
将此css添加到样式表中。某些元素具有冲突的层,这会导致按钮位于层的"下方",因此您不是在单击按钮,而是在某个不可见的层上单击。
#mageworxImageDataContainer{
...
position: relative;
}
device.iphone = function () {
return !device.windows() && find('iphone');
};
if (device.ios()) {
if (device.ipad()) {
addClass("ios ipad tablet");
} else if (device.iphone()) {
addClass("ios iphone mobile");
} else if (device.ipod()) {
addClass("ios ipod mobile");
}
}
相关文章:
- 数据rel=“;背面“;无法在iPhone上工作
- 显示:没有不工作的iPhone模拟器
- 在iPhone上,Vimeo Javascript API.play()函数没有'播放完视频后才能工作
- iCheck插件在ipad和iphone上无法正常工作
- jQuery AJAX刷新没有'不能在iPhone上工作
- 谷歌地图无法在iPhone / iPad工作灯6.2应用程序上运行
- 双击无法在iPhone safari浏览器中工作
- 流星:谷歌登录不'不能在iphone/ipad上工作
- 按钮在iPhone上无法正常工作(可能还有其他触摸屏)
- iPhone谷歌图像搜索触摸事件功能是如何工作的
- iPhone:span点击不'我工作不好
- 如何使相对位置像iPhone上的固定位置一样工作
- 网站响应能力-Iphone需要双击链接才能工作
- 响应式灯箱无法在iPhone中工作
- innerHTML不能在iPhone上工作
- mootools setProperty方法不能在iphone, ipad上工作
- 工作书签脚本的iphone/智能手机
- JavaScript子菜单在iPhone iOS 5更新后不再工作
- 使剪贴板复制粘贴在iphone设备上工作
- 上传器的照片为iPhone工作