手动创建线程池 效果会更好_创建更好的,可访问的焦点效果

手动创建线程池 效果会更好

Most browsers has their own default, outline style for the :focus psuedo-class.

大多数浏览器对于:focus psuedo-class具有其默认的轮廓样式。

Image for post
Chrome’s default outline style
Chrome浏览器的默认轮廓样式

This outline style is crucial for accessibility, especially when it comes to keyboard navigation, so removing it isn’t considered a good thing.

本大纲的风格是可访问性是至关重要的,尤其是当它涉及到键盘导航,所以删除它不被认为是一件好事

However, it is OK to do so if you replace the styling with something else.

但是 ,如果将样式替换为其他样式 ,则可以这样做。

I’m not a huge fan of the default browser outline. Take chrome’s for example. I think the color is too light and the border too thin. Sure, you can always change the color and thickness. Like this:

我不是默认浏览器轮廓的忠实拥护者。 以Chrome为例。 我认为颜色太浅,边框太细。 当然,您可以随时更改颜色和厚度。 像这样:

Image for post
Overridden outline style
覆盖轮廓样式

This approach is fine, but a “problem” with outline property is that it doesn’t follow the rounded corners. Personally I would prefer if this wasn’t the case so I tend to go with a different solution.

这种方法很好,但是具有outline属性的“问题”在于它没有遵循圆角。 就个人而言,如果不是这种情况,我会更喜欢,所以我倾向于采用其他解决方案。

改用盒子阴影 (Use box-shadow instead)

You can achieve the same result using box-shadow. Here’s how:

您可以使用box-shadow获得相同的结果。 这是如何做:

Image for post
The box-shadow creates a outline-like style
盒子阴影营造出轮廓般的风格

This will now be applied to every element’s default focus style. Like for the inputs in this form:

现在,它将应用于每个元素的默认焦点样式。 像这种形式的输入:

Image for post

However, these inputs have a border and I don’t think it looks that good when you have both the borders and the box-shadow-effect.

但是,这些输入都带有边框,当您同时具有边框和阴影效果时,我认为它看起来并不好

You can get around that by removing the border-color upon focus:

您可以通过删除焦点上的边框颜色来解决此问题:

Image for post
Simply remove the border-color
只需删除边框颜色

外卖 (Take aways)

Box-shadow is a nice way to get around the disadvantages of the outline-property. Keep in mind that elements that have a box-shadow property on the element itself could create some “icky” results:

Box-shadow是解决轮廓属性缺点的好方法。 请记住,在元素本身具有box-shadow属性的元素可能会产生一些“棘手的”结果:

Image for post
Eww
EWW

You’ll have to counter this by adding the focus-styled box-shadow to the element’s box-shadow upon focus.

您必须通过在焦点上将焦点样式的盒子阴影添加到元素的盒子阴影中来对此进行反击。

Image for post
Better
更好

翻译自: https://uxdesign.cc/create-better-accessible-focus-effects-75a3de27b8ba

手动创建线程池 效果会更好

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/274828.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

C++builder enum类型

C/C code #pragmaoption push -b-enumTThreadPriority { tpIdle, tpLowest, tpLower, tpNormal, tpHigher, tpHighest, tpTimeCritical }; //这是字节型的.理论上说这是可能的最小整形.可以是1Byte, 2Bytes, 4Bytes...#pragmaoption pop#pragmaoption push -benumTThreadPriori…

chrome浏览器世界之窗浏览器的收藏夹在哪?

今天心血来潮,用一个查重软件删除重复文件,结果把chrome浏览器和世界之窗浏览器的收藏夹给删除了,导致我保存的好多网页都没有了,在浏览器本身和网上都没有找到这两个浏览器默认的收藏夹在哪个位置,只好用DiskGenius 把…

Vue3究竟好在哪里 等推荐

话不多说,这一次花了几小时精心为大家挑选了30余篇好文,供大家阅读学习,提升自己的技术视野以及扩展自己的知识储备。本文阅读技巧,先粗看标题,感兴趣可以都关注一波,一起共同进步。前端从进阶到入院框架原…

eazy ui 复选框单选_UI备忘单:单选按钮,复选框和其他选择器

eazy ui 复选框单选重点 (Top highlight)Pick me! Pick me! No, pick me! In today’s cheat sheet we will be looking at selectors and how they differ. Unlike most of my other cheat sheets, this will focus on two components (radio buttons and checkboxes) side by…

过滤词

<?xml version"1.0" encoding"GB2312"?>-<wordList> <word>,</word> <word>.</word> <word><</word> <word>></word> <word>?</word> <word>/</word> <…

VS2010 VC Project的default Include设置

http://blog.csdn.net/jeffchen/article/details/5491435 VS2010与以往的版本一个最大的不同是&#xff1a;VC Directory设置的位置和以前的版本不一样。VS2010之前&#xff0c;VC Directory的设置都是在IDE的Tools->Options中设置的&#xff1b;VS2010改为&#xff0c;分别…

初级中级高级_初级职位,(半)高级职位

初级中级高级As a recent hire at my new job, as expected, a lot of things seemed scary and overwhelming. The scariest part was not the unfamiliarity with certain tasks or certain tools, but in communicating with higher-level coworkers, managers and bosses. …

如何写好技术文章(看张鑫旭老师的直播总结

大家好&#xff0c;我是若川。持续组织了6个月源码共读活动&#xff0c;感兴趣的可以点此加我微信 ruochuan12 参与&#xff0c;每周大家一起学习200行左右的源码&#xff0c;共同进步。同时极力推荐订阅我写的《学习源码整体架构系列》 包含20余篇源码文章。历史面试系列本文是…

Fact Table and Dimension Table In My Opinion

23转载于:https://www.cnblogs.com/answeryou/archive/2012/05/10/2495122.html

iOS 流媒体 基本使用 和方法注意

项目里面需要添加视频方法 我自定义 选用的是 avplayer 没选择 MediaPlayer 原因很简单 , avplayer 会更容易扩展 有篇博客 也很好地说明了 使用avplayer的优越性 blog.csdn.net/think12/article/details/8549438在iOS開發上&#xff0c;如果遇到需要播放影片&#xff0c;…

figma下载_迁移至Figma

figma下载Being an intuitive and user-friendly tool and having the possibility of real-time collaboration are some of the main reasons people choose to use Figma. But the migration process to Figma may sometimes be painful or time-consuming. 人们选择使用Fig…

metaWeblog 相关的参数

Function: Creates a new post on your blog. tags如果没会自动那一个 但是categroies如果与已经建立的不同,就会忽略掉的 可以用 string.replace(\n,).split(,) Parameters: Blog ID – For use in multisite installations, typically 0 for single sites Username – WordPr…

TypeScript 常用的新玩法

大家好&#xff0c;我是若川。持续组织了6个月源码共读活动&#xff0c;感兴趣的可以点此加我微信 ruochuan12 参与&#xff0c;每周大家一起学习200行左右的源码&#xff0c;共同进步。同时极力推荐订阅我写的《学习源码整体架构系列》 包含20余篇源码文章。历史面试系列上周分…

《Programming in Lua 3》读书笔记(十二)

日期&#xff1a;2014.7.14 PartⅡ Object-Oriented ProgrammingLua中实现面向对象编程。“如同OOP对象&#xff0c;table拥有状态&#xff1b;如同OOP对象&#xff0c;table拥有标识符---self&#xff0c;用来与其他变量做区分&#xff0c;而且两个table拥有同样的值也是…

(转)AS3中的stage,this,root的区别

要了解这个问题就要先对flash中的显示对象结构有一个大概的了解&#xff1a; 第一级&#xff1a;舞台&#xff1b; 第二级&#xff1a;当前SWF&#xff1b; 第三级&#xff1a;各种容器及可视对象&#xff08;如&#xff1a;文本框&#xff0c;位图……&#xff09;&#xff1b…

面试官是怎样高效面试的(面试官的“套路”

大家好&#xff0c;我是若川。持续组织了6个月源码共读活动&#xff0c;感兴趣的可以点此加我微信 ruochuan12 参与&#xff0c;每周大家一起学习200行左右的源码&#xff0c;共同进步。同时极力推荐订阅我写的《学习源码整体架构系列》 包含20余篇源码文章。历史面试系列最近正…

微服务负载均衡实现高可用_使用负载平衡实现大容量可用性

微服务负载均衡实现高可用Written by Yona Gidalevitz由Yona Gidalevitz撰写 Most users of the web are blissfully unaware of the sheer scale of the process responsible for bringing content across the Internet. There are literally miles of Internet between you …

Visual Studio 2008自带的Windows 系统使用的各种图标、光标和动画文件

1&#xff0c;Visual Studio 2008自带的1000多个 Windows 系统使用的各种图标、光标和动画文件 在Visual Studio 2008的安装目录下&#xff0c; /Microsoft Visual Studio 9.0/Common7/VS2008ImageLibrary/2052文件夹下面&#xff0c;有一个VS2008ImageLibrary.zip&#xff0c;…

Android中导入第三方jar

右键工程&#xff0c;Build path,Java build path,选择libraries在右边的按钮中点击“Add Library”选择“User library”,点击“下一步”点击“User librarys”按钮在出现的界面中点击“New..”按钮在弹出的界面中随便起一个名字&#xff0c;点击“确定”点击“Add jars”按钮…

19岁中专学历是怎么在广州找到前端工作的?

大家好&#xff0c;我是若川。持续组织了8个月源码共读活动&#xff0c;感兴趣的可以点此加我微信 ruochuan12 参与&#xff0c;每周大家一起学习200行左右的源码&#xff0c;共同进步。同时极力推荐订阅我写的《学习源码整体架构系列》 包含20余篇源码文章。历史面试系列本文来…