谷歌爬行 - 显示:无&显示:块 [英] google crawl -- display:none & display:block

查看:79
本文介绍了谷歌爬行 - 显示:无&显示:块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当Google抓取网页时,请使用样式的代码执行google bot抓取


  1. 使用 style =display:block

  2. 代码的内容=display:none

    code>




    我问的问题是因为我有一个F& Qs的网站。


    1. 对于用户,我希望仅当他点击answer / solution链接时才会显示答案。


    2. 对于google bot,我希望解决方案部分被抓取,否则我的页面内容变得太少。

    3. 解决方案

是的,谷歌将会看到既不显示也不显示内容的显示块



您的FAQ部分将会显示通过google bot。



请参阅这些文章: b
$ b

网站管理员指南:http://support.google.com/webmasters/bin/answer.py?hl=en&answer=35769 b
$ b


使用诸如Lynx这样的文本浏览器来检查您的网站,因为大多数搜索引擎蜘蛛都会像Lynx那样查看您的网站。如果诸如JavaScript,Cookie,会话ID,框架,DHTML或Flash等奇特功能使您无法在文本浏览器中看到您的所有网站,那么搜索引擎蜘蛛可能无法抓取您的网站。


隐藏文字和链接: http://support.google.com/webmasters/bin/answer.py?hl=zh_CN&answer=66353


隐藏内容中的文字或链接可能会导致您的网站被视为不可信,因为它向搜索引擎呈现信息的方式不同于访问者。 ...如果您在自己的网站上发现了隐藏的文字或链接,请将其移除,或(如果它们与您网站的访问者相关),使其易于浏览

/ blockquote>

When google crawls a web page , do google bot crawl

  1. content with code like style="display:none"

  2. content with code like style="display:block"

the question i am asking because i have a website of F&Qs.

  1. For user i want answers to be displayed only when he clicks on "answer/solution" link.

  2. For google bot i want solution section to be crawled else my content of page becomes too less.

解决方案

Yes google will see content that is both display none and display block

Your FAQ section will be seen by google bots.

See these articles:

Webmaster Guidelines: http://support.google.com/webmasters/bin/answer.py?hl=en&answer=35769

Use a text browser such as Lynx to examine your site, because most search engine spiders see your site much as Lynx would. If fancy features such as JavaScript, cookies, session IDs, frames, DHTML, or Flash keep you from seeing all of your site in a text browser, then search engine spiders may have trouble crawling your site.

Hidden text and links: http://support.google.com/webmasters/bin/answer.py?hl=en&answer=66353

Hiding text or links in your content can cause your site to be perceived as untrustworthy since it presents information to search engines differently than to visitors. ... If you do find hidden text or links on your site, either remove them or, if they are relevant for your site's visitors, make them easily viewable.

这篇关于谷歌爬行 - 显示:无&显示:块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆