The responsive navigation on my site uses the aria-hidden="false" attribute. Is there a way I can set it to "true" purely through CSS? If not is there a line of code I can add so it can be set to false for IE7 and IE8 users?

有帮助吗?

解决方案

Do you use jQuery? if so you can do something like :

if(/MSIE [78]/.test(navigator.userAgent)) {
    $('* [aria-hidden="false"]').attr('aria-hidden', 'true');
}
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top