Replacing H1 text with a logo image: best method for SEO and accessibility?

前端 未结 15 2152
渐次进展
渐次进展 2020-11-28 00:16

It seems like there are a few different techniques out there, so I was hoping to get a \"definitive\" answer on this...

On a website, it\'s common practice to create

15条回答
  •  有刺的猬
    2020-11-28 00:57

    A new (Keller) method is supposed to improve speed over the -9999px method:

    .hide-text {
    text-indent: 100%;
    white-space: nowrap;
    overflow: hidden;
    }
    

    recommended here:http://www.zeldman.com/2012/03/01/replacing-the-9999px-hack-new-image-replacement/

提交回复
热议问题