SEO 的文本缩进与位置
隐藏文本元素并将其替换为图像,同时仍保持良好的 SEO 的最佳方法是什么?我见过负文本缩进,但我更喜欢负顶部的绝对定位。
所以我想知道哪个对 SEO 更好。大多数搜索引擎是否考虑具有绝对定位的负顶部文本元素?同样对于文本缩进?
What's the best way to hide a text element and replace it with an image while still maintaining good SEO. I've seen negative text-indent, but I prefer absolute positioning with negative top.
So what I'd like to know is which is better for SEO. Do most search engines consider text elements with negative top with absolute positioning; likewise for text-indent?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果有什么不同的话我会感到非常惊讶。搜索引擎关心您的内容,他们通常不会下载您的样式表,因此他们看到的只是两种方法相同的标记。
图像替换对用户和搜索引擎都有好处,因此只要您不是为了隐藏目的而这样做,就没有问题。
I would be very surprised if there was any difference. Search engines care about your content, they don't generally download your stylesheets, so all they would see is the markup which would be the same for both methods.
Image replacement is good for users and search engines, so as long as you're not doing it for the purpose of cloaking, you'll be fine.
恐怕就谷歌的实际通信表明的情况而言,所接受的答案并非如此(尽管如此令人沮丧!)。看看这里:
http://luigimontanez.com/2010/stop -using-text-indent-css-trick/
和此处:
http://maileohye.com/html-text-indent-not-messing-up-your-rankings/
答案表明任何似乎向用户隐藏内容的 CSS 都可能被认为是不好的,仅仅是因为这些技术已被黑帽 SEO 所污染。尽管它们对于开发来说非常方便(并且在有效使用 CSS sprites 时是必需的),但似乎没有 Google 接受的最佳实践来解决这个问题。然而....
I'm afraid the accepted answer isn't the case as far as actual communications from Google indicate (as frustrating as that is!). Take a look here:
http://luigimontanez.com/2010/stop-using-text-indent-css-trick/
and here:
http://maileohye.com/html-text-indent-not-messing-up-your-rankings/
The answers indicates that any CSS that seems to hide content from the user could be considered bad, simply because the techniques have been tainted by their use by black-hat SEOs. Though they are super handy for development (and kind of required when using CSS sprites effectively), it looks like there isn't a Google accepted best practise to address this. Yet....