如何更改bootstrap中侧边栏的颜色

时间:2014-05-06 08:41:08

标签: css

默认情况下它是蓝色,我希望它改变为绿色。 请有人帮帮我我是新来的。

 <div class="container-fluid">
        <div class="row-fluid">
            <div class="span3" id="sidebar">
                <ul class="nav nav-list bs-docs-sidenav nav-collapse collapse">
                    <li> <a href="dashboard_admin.php"><i class="icon-chevron-right"></i> Dashboard</a></li>
                    <li> <a href="add_employee.php"><i class="icon-chevron-right"></i> Add Employee</a> </li>
                    <li class="active"> <a href="view_edit_delete_emp.php"><i class="icon-chevron-right"></i> View Edit Delete Employee</a></li>
                    <li> <a href="add_users.php"><i class="icon-chevron-right"></i> Add User</a> </li>
                    <li> <a href="view_user.php"><i class="icon-chevron-right"></i> View User</a> </li>
                    <li> <a href="edit_delete_users.php"><i class="icon-chevron-right"></i> View Edit Delete User</a></li>
                    <li><a href="#"><i class="icon-chevron-right"></i> View Leave Request</a></li>
                    <li> <a href="#"><i class="icon-chevron-right"></i> Leave History</a> </li>
                    <li> <a href="#"><span class="badge badge-success pull-right">731</span> Employees</a></li>
                    <li> <a href="#"><span class="badge badge-success pull-right">812</span> Users</a></li>
                    <li>  <a href="#"><span class="badge badge-info pull-right">27</span> Today's Leaves</a></li>
                    <li>  <a href="#"><span class="badge badge-info pull-right">1,234</span> Leave Requests</a>
                    </li>
                </ul>
            </div>

1 个答案:

答案 0 :(得分:-1)

更改侧边栏的背景颜色属性。但首先通过检查它来选择网页上的元素。在页面元素上右键单击,然后选择检查元素并检查相应的属性。