Frage

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?

War es hilfreich?

Lösung

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

if(/MSIE [78]/.test(navigator.userAgent)) {
    $('* [aria-hidden="false"]').attr('aria-hidden', 'true');
}
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top