html - 在移动响应中,当我们停留在主类别列表上时,子类别应该在悬停时显示
问题描述
这是主要和子类别栏。在桌面视图中,当我悬停在主类别上时,子类别栏正在显示,但当我在移动响应上执行时,子类别栏未显示在主类别的悬停上。如何在移动响应中解决这个问题。在移动响应中它也应该工作
css
<div @click='toggle = !toggle' href="#" class="categoriesbtnfix" data-toggle="dropdown"><i style="font-size: 16px;position: relative;left: -18px;" class="fas fa-bars"></i>Categories <i style="position: relative;left: 27px;top: 4px;font-size:16px;" class="fas fa-angle-down"></i></i></div>
<div v-show='toggle' class="q-categoryBar">
{% if CategoriesBar%}
{% for Categories in CategoriesBar %}
<div class="dropdownCategory">
<a class="dropbtnCat"
href="{% url 'promotions' Categories.cat_name %}">{{Categories.cat_name}}<i class="arrow-indicator fa fa-angle-right" aria-hidden="true"></i></br></a>
<div class="dropdown-contentCat">
{% for subCategories in SubCategoriesBar %}
{% if Categories.cat_id == subCategories.parent_id %}
<a href="{% url 'promotions' subCategories.cat_name %}">{{subCategories.cat_name}}</a>
{% endif %}
{% endfor %}
</div>
</div>
{% endfor %}
{% endif %}
</div>
.q-categoryBar {
position: relative;
width: 128%;
left: -1px;
z-index: 1;
background: #fff;
}
解决方案
推荐阅读
- linux - 如何将被调用变量作为后缀添加到另一个变量,然后调用后缀变量?
- iot - 如何使用蓝牙设备和 FIWARE IoT Agent
- sql - 如何解析表中一列中的多个值?
- php - Imagick PHP 只显示最后一页
- ruby-on-rails - 将 Instagram 提要集成到 Rails 应用程序中
- python - 如何在两个单独的 Pandas DataFrame 中的所有值之间进行插值?
- c# - .net API 发布后无法访问 Db
- css - 使用@font-face 分配标准(网络安全字体)进行打印
- oracle - Oracle NUMTODSINTERVAL 函数和区间函数
- couchdb - CouchDB 是否共享多个视图使用的地图功能?