简体   繁体   中英

Avoid Materialize nav bar from collapsing

Currently I am using materialize navbar and for the most part it work perfectly.

<div className="navbar-fixed fadeInDown animated">
    <nav>
        <div className="nav-wrapper">
            ...
        </div>
    </nav>
</div>

The thing is, it has an automatic collapsing behavior and for that reason I removed the id="nav-mobile" .

It still collapses I think because it gets the width change events .

How do I make it so that it just changes the width without collapsing eventually?

根据文档 ,从导航$(".button-collapse").sideNav();删除button-collapse并删除初始化代码: $(".button-collapse").sideNav();

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM