html - 如何在 iPhone 5 网络应用程序上显示我的自定义 CSS?

标签 html iphone css web-applications

我正在使用 Bootstrap 作为框架来创建 iPhone 应用程序。我只使用 css 样式。但是,当我将其添加到页面时:

   <meta name="apple-mobile-web-app-capable" content="yes" /> 

在我已保存到主屏幕的 iPhone 网络应用程序上,它没有显示我在 bootstrap.min.css 中更改的自定义 css。

我做错了什么?

最佳答案

参见 Apple docs: Safari HTML Reference .您可以使用 window.navigator.standalone 确定全屏模式是否打开。如果 bool 为假,您就知道问题出在哪里。

关于html - 如何在 iPhone 5 网络应用程序上显示我的自定义 CSS?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19235366/

相关文章:

binary - 无效的二进制 Itunes Connect

css - 如何在中间垂直设置 <a> 元素的内部文本?

html - 具有特殊宽度的固定 css 标题

html - CSS 反射 : Can I make it scale & Skew?

html - 如何在悬停时以百分比缩放 div

iphone - NSDirectoryEnumerator 和子文件夹

javascript - 创建响应 div 16 :9

javascript - 停止 element.style 覆盖我的 css 样式

以百分比表示的 HTML 表格宽度,表格行平均分隔

iphone - Foursquare API closeByVenue 服务问题