頭部導航固定時,使用position: fixed; 會導致導航的寬度大於容器的寬度,引起位置的偏移
.company_navfx { position: fixed; top: 0px;right:0;/*這句很重要*/ width: 100%;z-index:999;height:50px;line-height:50px; }
頭部導航固定時,使用position: fixed; 會導致導航的寬度大於容器的寬度,引起位置的偏移
.company_navfx { position: fixed; top: 0px;right:0;/*這句很重要*/ width: 100%;z-index:999;height:50px;line-height:50px; }
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。