gpt4 book ai didi

css - AdminLTE 在菜单之间切换侧边栏空间

转载 作者:行者123 更新时间:2023-11-28 06:51:18 26 4
gpt4 key购买 nike

我的 AdminLTE 迷你边栏出现了这个奇怪的问题(当我按下“切换”按钮时)。

在正常模式下工作正常,但当我折叠侧边栏时,标题和树之间的这个空间出现,这会扰乱功能,因为当我将指针移到该空间菜单上时,菜单会隐藏,我必须移动才能找到选项。

“General”和“Usuarios”之间的空格:

Blank space between "General" and "Usuarios"

我尝试用原来的 AdminLTE 代码替换我的 HTML 代码,但问题仍然存在。我发现“解决”这个问题的唯一方法是删除“包含树”。我的 Rails Assets 管道中的选项,但我找不到一个一个地探索 css 文件的问题。

代码:

<aside class="main-sidebar">
<!-- sidebar: style can be found in sidebar.less -->
<section style="height: auto;" class="sidebar">
<!-- Sidebar user panel -->
<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>Hola, Bárbara</p>
</div>
</div>
<!-- sidebar menu: : style can be found in sidebar.less -->
<ul class="sidebar-menu">
<li class="header">MENU DE NAVEGACION</li>
<li class="treeview active">
<a href="#">
<i class="fa fa-dashboard"></i> <span>General</span> <i class="fa fa-angle-left pull-right"></i>
</a>
<ul class="treeview-menu">
<li role='presentation' class='<%= "active" if controller_name == "users" %>'>
<a href='/admin/users'>
<i class="fa fa-circle-o text-yellow"></i>Usuarios
</a>
</li>
<li role='presentation' class='<%= "active" if controller_name == "schools" %>'>
<a href='/schools'>
<i class="fa fa-circle-o text-yellow"></i>Colegios
</a>
</li>
</ul>
</li>
<li class="treeview active">
<a href="#">
<i class="fa fa-files-o"></i>
<span>Evaluaciones</span><i class="fa fa-angle-left pull-right"></i>
</a>
<ul class="treeview-menu">
<li role='presentation' class='<%= "active" if controller_name == "evaluations" %>'>
<a href='/evaluations'>
<i class="fa fa-circle-o text-red"></i>Listar Evaluaciones
</a>
</li>
<li role='presentation' class='<%= "active" if controller_name == "evaluations" %>'>
<a href='/evaluations/new'>
<i class="fa fa-circle-o text-red"></i>Crear evaluación
</a>
</li>
<li role='presentation' class='<%= "active" if controller_name == "questions" %>'>
<a href='/questions'>
<i class="fa fa-circle-o text-red"></i>Listar preguntas
</a>
</li>
<li role='presentation' class='<%= "active" if controller_name == "questions" %>' >
<a href='/questions/new'>
<i class="fa fa-circle-o text-red"></i>Crear pregunta
</a>
</li>
</ul>
</li>
<li class="treeview active">
<a href="#">
<i class="fa fa-dashboard"></i>
<span>Indicadores</span>
<i class="fa fa-angle-left pull-right"></i>
</a>
<ul class="treeview-menu">
<li role='presentation' class='<%= "active" if controller_name == "contents" %>'>
<a href='/contents'><i class="fa fa-circle-o text-aqua"></i>Contenidos/Aprendizajes
</a>
</li>
<li role='presentation' class='<%= "active" if controller_name == "axes" %>'><a href='/axes'>
<i class="fa fa-circle-o text-aqua"></i>Ejes
</a>
</li>
<li role='presentation' class='<%= "active" if controller_name == "pme_abilities" %>'>
<a href='/pme_abilities'>
<i class="fa fa-circle-o text-aqua"></i>Habilidades/Ejes PME
</a>
</li>
<li role='presentation' class='<%= "active" if controller_name == "bloom_abilities" %>'>
<a href='/bloom_abilities'>
<i class="fa fa-circle-o text-aqua"></i>Habilidades Cognitivas
</a>
</li>
<li role='presentation' class='<%= "active" if controller_name == "units" %>'><a href='/units'>
<i class="fa fa-circle-o text-aqua"></i>Unidades
</a>
</li>
<li role='presentation' class='<%= "active" if controller_name == "learning_goals" %>'><a href='/learning_goals'>
<i class="fa fa-circle-o text-aqua"></i>Objetivos de aprendizaje
</a>
</li>
<li role='presentation' class='<%= "active" if controller_name == "difficulty_levels" %>'>
<a href='/difficulty_levels'><i class="fa fa-circle-o text-aqua"></i>Niveles de dificultad
</a>
</li>
</ul>
</li>
<li class="treeview active">
<a href="#">
<i class="fa fa-money"></i>
<span>Facturación</span>
<i class="fa fa-angle-left pull-right"></i>
</a>
<ul class="treeview-menu">
<li><a href="#"><i class="fa fa-circle-o text-green"></i>General</a></li>
<li><a href="#"><i class="fa fa-circle-o text-green"></i>Cobranza</a></li>
<li><a href="#"><i class="fa fa-circle-o text-green"></i>Fidelización</a></li>
</ul>
</li>
<li class="treeview active">
<a href="#">
<i class="fa fa-edit"></i> <span>Administración</span>
<i class="fa fa-angle-left pull-right"></i>
</a>
<ul class="treeview-menu">
<li><a href="pages/forms/general.html"><i class="fa fa-circle-o text-orange"></i> Ver informes</a></li>
<li><a href="pages/forms/advanced.html"><i class="fa fa-circle-o text-orange"></i> Rangos de corte</a></li>
<li><a href="pages/forms/editors.html"><i class="fa fa-circle-o text-orange"></i> Ingreso resultados</a></li>
<li><a href="pages/forms/editors.html"><i class="fa fa-circle-o text-orange"></i> Descarga evaluaciones</a></li>
</ul>
</li>
</ul>
</section>
<!-- /.sidebar -->
</aside>

最佳答案

我偶然发现了同样的问题。查看 scaffolds.scss 和 css p, ol, ul, td 下,注释掉 font-size。这似乎是我的问题所在。

关于css - AdminLTE 在菜单之间切换侧边栏空间,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33748589/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com