简体   繁体   English

隐藏图片下方的文字以进行SEO

[英]Hiding text under an image for SEO purposes

I am going to use a large image on my page with a bunch of text on it. 我将在页面上使用带有一堆文本的大图像。 The reason I am including body text on an image is because the text will be rotated, and there currently isn't any GREAT solution for rotating text seamlessly across all browsers. 我在图像上包含正文的原因是因为文本将被旋转,并且目前没有任何伟大的解决方案可在所有浏览器上无缝地旋转文本。

On this image, there is a lot of text, and I want it to be indexed by search engines. 在此图像上,有很多文本,我希望它能被搜索引擎索引。 (but its a picture so it's content won't be indexed, obviously) If I was to include a div with all the text html and set the css to display:none, would Google still index the content that is hidden under the picture? (但是,显然它是图片,因此它的内容不会被索引)如果我要在所有文本html中包括一个div并将css设置为display:none,那么Google仍会索引隐藏在图片下的内容吗?

Are their any other solid solutions here? 他们在这里还有其他可靠的解决方案吗?

This is fine. 这可以。 We do this all the time, with both images and flash movies (ala SIFR). 我们一直在处理图像和Flash电影(ala SIFR)。 Most people agree that as long as you are not being deceptive, it's not a problem. 大多数人都同意,只要您不具有欺骗性,这不是问题。

Use a "phark" image replacement technique, where you take advantage of text-indent. 使用“文字”图像替换技术,您可以利用文本缩进。 Here is a good summary of all the options . 这是所有选项的总结

use the alt and title attributes of the <img> tag. 使用<img>标签的alttitle属性。 also longdesc might be a good candidate. longdesc可能也是一个不错的选择。 no need to hide your text … 无需隐藏您的文字...

edit. 编辑。 longdesc isn't supported by any major browser 任何主流浏览器均不支持longdesc

as a experienced SEO and link builder i cant recommend hiding content in any way since it can get your website penalized or even worse removed from search engine index. 作为经验丰富的SEO和链接生成器,我不建议以任何方式隐藏内容,因为它会使您的网站受到惩罚甚至更糟地从搜索引擎索引中删除。

Google hates hiding and cloaking. Google讨厌隐藏和伪装。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM