测试效果

2014 H5BP Image Replacement 2

<h3 class="visuallyhidden">
  CSS-Tricks
</h3>

Notes

  • This doesn't really replace a single element with an image, it just does a good job at hiding an element from view while remaining accessible to screen readers. So you could use whatever you wanted to display the image, then put an <h3 class="visuallyhidden">Title</h3> next to it.
posted @ 2016-03-06 20:25  Jacky_Kun  阅读(173)  评论(0编辑  收藏  举报