javascript - aria-expanded="true" 不适用于移动设备
问题描述
当用户关闭移动设备中的下拉菜单时,aria-expanded="true" 不起作用。它在桌面浏览器页面中运行良好。
桌面
<a class="notifLink" data-toggle="dropdown" aria-haspopup="true" id="notificationDropdown" aria-expanded="false" onclick="{!c.readNotifs}">
<h4 class="linkColor">{!v.notifL}</h4>
</a>
移动的
<a class="dropdown-toggle notifLink" data-toggle="dropdown" aria-haspopup="true" id="notificationDropdown" aria-expanded="false" onclick="{!c.readNotifs}">
<span class="glyphicon glyphicon-bell"></span>
<div class="notificationItemsIcon"></div>
</a>
我错过了什么?
解决方案
嘿,我刚遇到同样的问题。您在使用 Shopify 和 Shogun 吗?对我来说,问题是幕府将军在代码中复制了一些资产,基本上使点击自行取消。我不得不删除页面上的 shogun 部分,之后效果很好。
— 编码经验最少的平面设计师
推荐阅读
- java - JPA/Hibernate 分页 - 使用 @Where 对 @Inheritance(strategy = InheritanceType.JOINED) 的错误 COUNT 查询
- python - 有没有办法在新目录中按月组织视频文件?
- postgresql - 为什么 pgAdmin 将现有数据库复制到新服务器?
- vue.js - vuejs循环遍历项目,每3个项目新行
- python - 如何在 Python 中仅从 Google 搜索页面获取链接?
- cmake - 我可以阻止 GoogleTest-build 修改全局 CMAKE_CXX_FLAGS 变量吗?
- java - 实例方法是否曾经使用静态绑定解析?
- sql - 将数据从 Excel 导出到 SQL Server - VBA
- node.js - 快速路由器中的 GET、DELETE、POST 有真正的区别吗?
- c# - 有什么方法可以在 UWP 中获取硬盘数据?