我有一个固定的侧边栏,我需要它在触发按钮时关闭并覆盖 'content' id 上的一个类,但是当再次打开侧边栏时删除这个类。
任何帮助是极大的赞赏。
<div id="container" class="fixed-header">
<!--SIDEBAR-->
<div id="sidebar">
<div id="sidebar-right"></div>
<ul id="nav">
<li>
<a href="dashboard.php">Dashboard</a>
</li>
<li>
<div class="sub-menu-click">Clients</div>
<ul class="sub-menu">
<li><a href="lookup-clients.php"><i class="fa fa-angle-right"></i>Lookup Clients</a></li>
<li><a href="create-a-client.php"><i class="fa fa-angle-right"></i>Create a Client</a></li>
</ul>
</li>
<li>
<div class="sub-menu-click">Properties</div>
<ul class="sub-menu">
<li><a href="lookup-properties.php"><i class="fa fa-angle-right"></i>Lookup Properties</a></li>
<li><a href="create-a-property.php"><i class="fa fa-angle-right"></i>Create a Property</a></li>
</ul>
</li>
<li>
<div class="sub-menu-click">Appointments</div>
<ul class="sub-menu">
<li><a href="lookup-appointments.php"><i class="fa fa-angle-right"></i>Lookup Appointments</a></li>
<li><a href="book-an-appointment.php"><i class="fa fa-angle-right"></i>Book an Appointment</a></li>
</ul>
</li>
<li>
<div class="sub-menu-click">Inventories</div>
<ul class="sub-menu">
<li><a href="lookup-inventories.php"><i class="fa fa-angle-right"></i>Lookup Inventories</a></li>
<li><a href="create-an-inventory-1.php"><i class="fa fa-angle-right"></i>Create an Inventory</a></li>
</ul>
</li>
<li>
<div class="sub-menu-click">Check-Ins</div>
<ul class="sub-menu">
<li><a href="lookup-check-ins.php"><i class="fa fa-angle-right"></i>Lookup Check-Ins</a></li>
<li><a href="create-a-check-in.php"><i class="fa fa-angle-right"></i>Create a Check-In</a></li>
</ul>
</li>
<li>
<div class="sub-menu-click">Check-Outs</div>
<ul class="sub-menu">
<li><a href="lookup-check-outs.php"><i class="fa fa-angle-right"></i>Lookup Check-Outs</a></li>
<li><a href="create-a-check-out.php"><i class="fa fa-angle-right"></i>Create a Check-Out</a></li>
</ul>
</li>
</ul>
<div id="content">
<div class="container">