TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Stop Using the text-indent:-9999px CSS Trick

8 点作者 luigi将近 15 年前

1 comment

eclark将近 15 年前
Notice that the linked google employee(<a href="http://maileohye.com/html-text-indent-not-messing-up-your-rankings/" rel="nofollow">http://maileohye.com/html-text-indent-not-messing-up-your-ra...</a>) has no real solution. Everything is still in development. Though if your site layout is conducive Google's search results are a good alternative (They still don't use the alt property).<p>While the text-indent css is a hack. For now it is the best we have. The alt property will get you in the search index, it will not allow for good display when google returns a result. That little snippet of each site that google shows is hard to get right using just alt text.<p>We should be moving away from using it, however right now almost everyone uses it. Google won't penalize you for it yet.