【发布时间】:2015-07-07 09:39:10
【问题描述】:
我不明白为什么这个 CSS 在我的设备(Android 4.4 和 iOS 8.0)上不起作用:
body {
background: -webkit-linear-gradient(45deg, $gcolor1, $gcolor2, $gcolor3, $gcolor4); /* For Safari 5.1 to 6.0 */
background: -o-linear-gradient(45deg, $gcolor1, $gcolor2, $gcolor3, $gcolor4); /* For Opera 11.1 to 12.0 */
background: -moz-linear-gradient(45deg, $gcolor1, $gcolor2, $gcolor3, $gcolor4); /* For Firefox 3.6 to 15 */
background: linear-gradient(45deg, $gcolor1, $gcolor2, $gcolor3, $gcolor4); /* Standard syntax */
background-attachment:fixed;
background-position: center;
}
body .view-container.tab-content {
background-color: transparent;
}
body .pane, .menu, .view, .list, .item {
background: transparent;
}
背景只是变成白色,尽管它在浏览器(在手机和 Chrome 上)中确实有效。怎么回事?
仅供参考,我使用 Phonegap Build 部署应用程序,并将此 CSS 应用于 Ionic/Angular 项目。
【问题讨论】:
-
你怎么称呼你的 css 可以给我看看
-
@Sport:正如您在回答中指出的那样,位于 ionic.min.css 下方