CSS 使用CSS剪辑作为隐藏内容的可访问方法

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了CSS 使用CSS剪辑作为隐藏内容的可访问方法相关的知识,希望对你有一定的参考价值。

.element-invisible {
  position: absolute !important;
  clip: rect(0, 0, 0, 0);
}
/* IE7 */
*:first-child + html .element-invisible {
  clip: rect(0 0 0 0);
}
/* IE6 */
* html .element-invisible {
  clip: rect(0 0 0 0);
}

以上是关于CSS 使用CSS剪辑作为隐藏内容的可访问方法的主要内容,如果未能解决你的问题,请参考以下文章