【问题标题】:Why is navbar-brand hidden on chrome for mobile?为什么 navbar-brand 隐藏在 chrome for mobile 上?
【发布时间】:2015-07-09 21:16:08
【问题描述】:

我刚刚创建了我的site,并一直在调整移动视图。现在,对于我的生活,我无法弄清楚为什么当在移动 chrome 或具有小视口的桌面 chrome 上查看网站时,导航栏品牌会消失。它确实出现在我的 iPhone 上的 safari 中,所以我确定它在那里。任何帮助将不胜感激。

【问题讨论】:

    标签: html css twitter-bootstrap


    【解决方案1】:

    好吧,你已经定义了你的.navbar-brand img,在你的@media (max-width: 767px)声明中有一个width: auto;尝试删除width: auto;

    例如

    @media (max-width: 767px) {
         .navbar-brand img {
           max-height: 40px;
           /* width: auto; */ /** comment out or remove this line **/
           margin: -10px 10px 0 0;
        }
    }
    

    希望对你有帮助。

    【讨论】:

      猜你喜欢
      • 2021-03-26
      • 2014-01-12
      • 2013-10-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-10-16
      • 1970-01-01
      相关资源
      最近更新 更多