[wordpress插件] Accessible Dropdown Menus可访问的下拉菜单

wordpress 插件 文章 2020-01-25 11:00 585 0 全屏看文

AI助手支持GPT4.0

评分

86

86

描述

Purpose:

目的:

Many sites have dropdown menus where the expanding of the links can only be triggered by a mouse hover.

许多站点都有下拉菜单,其中链接的扩展只能通过鼠标悬停来触发。

This means that for keyboard only users parts of the site are harder or sometimes impossible to reach.

这意味着对于键盘用户,网站的某些部分更难甚至有时无法访问。

This plugin makes these dropdown menus keyboard accessible.

此插件可通过键盘访问这些下拉菜单。

When tabbing through the primary navigation the sub level menus will become visible and users will be able to tab to the lower level links.

在主导航中切换时,子级别的菜单将变为可见,并且用户将可以跳到较低级别的链接。

The current version has been tested by both sighted keyboard-only users and screen reader users.

仅使用键盘的用户和屏幕阅读器用户均已测试了当前版本。

If it doesn’t work for your reader, please let us know!

如果对您的读者不起作用,请告诉我们!

How it Works:

工作原理:

The plugin uses a combination of CSS and javascript to enable the dropdown menus to be keyboard controlled.

插件使用CSS和javascript的组合来使下拉菜单可以通过键盘控制。

Using the script, whenever a link in the menu gets focus its containing list item (

使用脚本,只要菜单中的链接获得焦点,其包含的列表项(

  • ) is given the necessary class.

  • )被赋予必要的类。

    This enables the new CSS definitions to open any hidden submenus and bring those links into the tabbing order.

  • 这样,新的CSS定义就可以打开任何隐藏的子菜单,并将这些链接按Tab键顺序排列。

    In the absence of javascript the full submenu lists may not open but the individual sub-links can be tabbed to.

    在没有javascript的情况下,可能无法打开完整的子菜单列表,但可以将各个子链接设置为选项卡。

    Credits:

    积分:

    Current version built and maintained by Amy Hendrix.

    由Amy Hendrix构建和维护的当前版本。

    The original version of this plugin was built by Graham Armfield.

    此插件的原始版本由Graham Armfield构建。

    It is still available at http://www.coolfields.co.uk/2011/12/wordpress-keyboard-accessible-dropdown-menus-plugin-version-0-1/

    它仍然可以在http://www.coolfields.co.uk/2011/12/wordpress-keyboard-accessible-dropdown-menus-plugin-version-0-1/ 上找到。

    The mechanism used in this plugin is based on the same logic used in Blake Haswell’s excellent example of a multi-level accessible dropdown menu.

    此插件中使用的机制基于Blake Haswell出色的多级可访问下拉菜单示例中使用的逻辑。

    You can find it at: http://blakehaswell.com/lab/dropdown/deux/

    您可以在以下位置找到它:http://blakehaswell.com/lab/dropdown/deux/

    下载地址

    https://downloads.wordpress.org/plugin/accessible-dropdown-menus.0.4.1.zip

    https://downloads.wordpress.org/plugin/accessible-dropdown-menus.0.4.1.zip

    -EOF-

    AI助手支持GPT4.0


    国内超级便宜服务器

    摸鱼人热门新闻聚合

    钻级赞助商 我要加入

    开发者在线工具

    第三方支付技术请加QQ群

    相关文章
    [wordpress插件] Custom Post Slider自定义帖子滑块
    [wordpress插件] CampTix Instamojo Payment GatewayCampTix Instamojo付款网关
    [wordpress插件] CaptureMyPageCaptureMyPage
    [wordpress插件] OfferStackOfferStack
    [wordpress插件] ACF: Field SelectorACF:字段选择器
    随便看看
    微信公众号openid? 2347
    微信开放平台跟公众平台有什么区别? 3608
    怎么添加小程序支付功能? 4516
    教育科技公司申请微信支付被拒绝? 4799
    微信公众号免300认证教程 5892
    小程序已经上线,作为管理员无法在小程序数据助手查看数据? 5299
    小程序广告组件通过审核,但是小程序内没有显示广告? 5067
    企业微信通讯录账号被管理员误/恶意删除,怎么办? 9568
    问题? 9048
    如何快速搭建抽奖助手小程序(无需代码知识) 6177