【问题标题】:Sticky menu width 100% but not filling screen粘性菜单宽度 100% 但不填满屏幕
【发布时间】:2015-04-02 04:59:04
【问题描述】:

我们的网站 (http://462184.hs-sites.com/) 上有一个粘性菜单,其宽度设置为 100%。但是,正如您所看到的,菜单左侧仍然缺少几个像素。

我无法弄清楚它与什么冲突。非常感谢您的帮助!

【问题讨论】:

    标签: html css hubspot


    【解决方案1】:

    您只是想在 css 中提供left:positionvalue。请使用.custom_menu-container.nav-sticky{left:0;}... 完成。

    【讨论】:

      【解决方案2】:

      我为你修好了,只需复制并粘贴整个内容 找: .custom_menu-container.nav-sticky{background:#29a2f3;position:fixed!important;top:0;transition:all .5s ease 0s;width:100%;z-index:10}

      http://cdn2.hubspot.net/hub/462184/hub_generated/style_manager/1427950593779/custom/page/PocketBookkeeping_Feb2015-theme/PocketBookkeeping_Feb2015-style.min.css

      替换为:

      .custom_menu-container.nav-sticky{background:#29a2f3;position:fixed!important;top:0;transition:all .5s ease 0s;width:100%;z-index:10;left:0;}
      

      【讨论】:

        【解决方案3】:

        进行这些更改:

        .custom_menu-container.nav-sticky{
            left: 0; /* add */
            postition: fixed; /* remove !important */
        }
        

        【讨论】:

          猜你喜欢
          • 2012-04-02
          • 1970-01-01
          • 2013-06-07
          • 1970-01-01
          • 1970-01-01
          • 2011-09-30
          • 1970-01-01
          • 2013-05-01
          • 1970-01-01
          相关资源
          最近更新 更多