{text-indent : -9999} for image replace not working

后端 未结 6 2287
孤街浪徒
孤街浪徒 2021-02-07 08:39

Any ideas why?

http://jsfiddle.net/FHUb2/

6条回答
  •  囚心锁ツ
    2021-02-07 09:11

    Keep in mind that (if you care) with inline-block the text-indent image replacement technique will fail in IE7. I recently had a heck of a time figuring that one out. I used this technique for IE7 and it works:

    .ir {
        font: 0/0 a;
        text-shadow: none;
        color: transparent;
    }
    

提交回复
热议问题