Transparent navigation bar in Ionic

跟風遠走 提交于 2020-01-24 01:33:18

问题


My Ionic application have a detail view with transparent header. Applying CSS class "bar-clear" to my element is doing the job just fine in desktop browsers and when running the app on Android (see result here).

But when running on iOS 8 the header is white and opaque (see here).
Any idea why?


回答1:


I did some research and people it got it working by setting bar-light to the header bar and then making these changes:

    .bar.bar-light {
  background-color: rgba(255,255,255,.66) !important; /* or transparent, or background:none */
}
.scroll-content {
  overflow: visible !important;
}

See this playground: http://play.ionic.io/app/3cbf53eff565

Will it work once built? not sure but give it a go and let me know.



来源:https://stackoverflow.com/questions/31092610/transparent-navigation-bar-in-ionic

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!