【问题标题】:aria-expanded="true" is not working on mobile devicesaria-expanded="true" 不适用于移动设备
【发布时间】:2020-07-05 16:10:11
【问题描述】:
当用户关闭移动设备中的下拉菜单时,

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>

我错过了什么?

【问题讨论】:

    标签: javascript html web twitter-bootstrap-3 bootstrap-4


    【解决方案1】:

    嘿,我也遇到了同样的问题。您在使用 Shopify 和 Shogun 吗?对我来说,问题是幕府将军在代码中复制了一些资产,基本上使点击自行取消。我不得不删除页面上的 shogun 部分,之后效果很好。

    ——编码经验最少的平面设计师

    【讨论】:

      猜你喜欢
      • 2018-10-20
      • 1970-01-01
      • 1970-01-01
      • 2015-11-15
      • 2016-11-02
      • 2023-03-23
      • 1970-01-01
      • 2014-11-11
      • 2017-02-17
      相关资源
      最近更新 更多