[英]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.