我环顾四周,但找不到这样的问题,可能是一个愚蠢的问题,但我找不到答案。
我刚刚安装了“adminlte-rails”gem,当我粘贴左侧边栏的示例代码时,它可以工作,但盒子没有正确着色,这是我正在使用的代码和结果:
示例代码:
<div class="main-sidebar">
<!-- Inner sidebar -->
<div class="sidebar">
<!-- user panel (Optional) -->
<div class="user-panel">
<div class="pull-left image">
<img src="dist/img/user2-160x160.jpg" class="img-circle" alt="User Image">
</div>
<div class="pull-left info">
<p>User Name</p>
<a href="#"><i class="fa fa-circle text-success"></i> Online</a>
</div>
</div><!-- /.user-panel -->
<!-- Search Form (Optional) -->
<form action="#" method="get" class="sidebar-form">
<div class="input-group">
<input type="text" name="q" class="form-control" placeholder="Search...">
<span class="input-group-btn">
<button type="submit" name="search" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i></button>
</span>
</div>
</form><!-- /.sidebar-form -->
<!-- Sidebar Menu -->
<ul class="sidebar-menu">
<li class="header">HEADER</li>
<!-- Optionally, you can add icons to the links -->
<li class="active"><a href="#"><span>Link</span></a><</li>
<li><a href="#"><span>Another Link</span></a></li>
<li class="treeview">
<a href="#"><span>Multilevel</span> <i class="fa fa-angle-left pull-right"></i></a>
<ul class="treeview-menu">
<li><a href="#">Link in level 2</a></li>
<li><a href="#">Link in level 2</a></li>
</ul>
</li>
</ul><!-- /.sidebar-menu -->
</div><!-- /.sidebar -->
</div><!-- /.main-sidebar -->
我尝试将相同的类应用于身体,但没有出现颜色。
谢谢!!