我們在我們的網站上有一個粘性菜單(http://462184.hs-sites.com/),寬度設置爲100%。但是,正如您所看到的,菜單在左側仍然短了幾個像素。粘性菜單寬度100%但不填充屏幕
我無法弄清楚它與什麼衝突。非常感謝您的幫助!
我們在我們的網站上有一個粘性菜單(http://462184.hs-sites.com/),寬度設置爲100%。但是,正如您所看到的,菜單在左側仍然短了幾個像素。粘性菜單寬度100%但不填充屏幕
我無法弄清楚它與什麼衝突。非常感謝您的幫助!
你只是想在css中給left:positionvalue
。請使用.custom_menu-container.nav-sticky{left:0;}
...完成。
我固定它給你,只需複製並粘貼了整個事情 查找: .custom_menu-container.nav粘{背景:#29a2f3;位置:固定重要;頂部:0;過渡:所有,5S緩解0;寬度:100%; z索引:10}
其替換爲:
.custom_menu-container.nav-sticky{background:#29a2f3;position:fixed!important;top:0;transition:all .5s ease 0s;width:100%;z-index:10;left:0;}
進行這些更改:
.custom_menu-container.nav-sticky{
left: 0; /* add */
postition: fixed; /* remove !important */
}
謝謝大家 - 工作完美! – PocketJosh 2015-04-02 08:24:26