Bootstrap模式在iPhone上不工作 [英] Bootstrap modal doesn't work on iPhone

查看:508
本文介绍了Bootstrap模式在iPhone上不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的网站上使用Bootstrap模式对话框(在桌面上工作正常)。当我尝试在iPhones和iPad上使用此功能时,模态不工作。

I'm using a Bootstrap modal dialog on my site (which works fine on desktop). When I try to use this function on iPhones and iPads, the modals do not work.

有理由吗?有没有人想出了一个修复,同时使用Bootstrap的CSS通过 @import

Is there a reason for this? Has anyone come up with a fix for this whilst using Bootstrap's CSS via @import?

我使用Bootstrap覆盖文件更改Bootstrap CSS。

I use the Bootstrap override file to make changes to the Bootstrap CSS.

推荐答案

iPhone的浏览器似乎不支持modal的淡入淡出转换。完全从您的模态对话框中完全停用,或者如果您想花点时间,请仅在您的网站检测到iPhone设备时停用:

The iPhone's browser doesn't seem to support the modal's "fade" transition. Disable it entirely from your modal dialog box, or if you want to get fancy, disable only when your site detects an iPhone device:

在iPhone上

<div class="modal hide fade" id="deleteConfirmation">

<div class="modal hide" id="deleteConfirmation">

这篇关于Bootstrap模式在iPhone上不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆