简体   繁体   English

WCAG 2.0 AA验证背景图像错误

[英]WCAG 2.0 AA validation background image error

Our pages fail wcag 2.0 AA validation when background images are disabled. 禁用背景图片时,我们的页面无法通过wcag 2.0 AA验证。 (Due to background colour) (由于背景色)

We want to keep the dark background we have at the moment, but make the background white if images are disabled. 我们希望保持当前的深色背景,但是如果禁用了图像,则使背景变白。 Is the below a smart solution to the problem? 以下是解决问题的明智方法吗?

bg_top is the main background image. bg_top是主要的背景图像。 bg_secNavigation is the dark background as a gradient. bg_secNavigation是深色背景作为渐变。

background-image: url(../images/bg_top.jpg), url(../images/bg_secNavigation.jpg);
background-repeat: no-repeat, repeat-x;
background-color: #fff;
background-position: center top, left top;

How can you disable background images? 如何禁用背景图片?

Why don't you have a div with a simple dark background and then in that same div you have your background images... 为什么没有一个具有简单深色背景的div,然后在同一div中有背景图像...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如果复选框的标签是超链接,是否违反WCAG 2.0 AA? - Is it a WCAG 2.0 AA violation if the label of a checkbox is a hyperlink? WCAG 2.0验证 - “到同一资源的连续文本和图像链接” - WCAG 2.0 validation - “Consecutive text and image links to the same resource” 脚本用户界面可能无法访问。 WCAG 2.0(AA级) - Script user interface may not be accessible. WCAG 2.0 (Level AA) 符合WCAG 2.0 AA的规定是否将ul标签用作母版页中的导航标签? - Does compliance to WCAG 2.0 AA use ul tab as navigation tabs in a master page? 我们是否需要为Instagram提要提供替代文本,以达到WCAG 2.0 AA合规性水平? - Do we need alt text for Instagram feed to meet WCAG 2.0 AA compliance level? 让相关单位确保Section 508 / WCAG 2.0 AA级兼容性是否重要? - Is it important to have relative units to ensure Section 508 / WCAG 2.0 Level AA compatibility? wcag 2.0 AA是否可以将标题和alt都保留为空并在隐藏的段落文本中添加文本? - is it wcag 2.0 AA accessible to leave both title and alt empty and add the text in a hidden paragraph text? 定制旋转器控制WAGG2.0 AA验证 - Custom rotator control WAGG2.0 AA validation <abbr>和WCAG 2.0</abbr> - <abbr> and WCAG 2.0 ARIA和WCAG 2.0成功标准 - ARIA and WCAG 2.0 success criteria
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM