Google搜索引擎优化和隐藏元素 [英] Google SEO and hidden elements

查看:98
本文介绍了Google搜索引擎优化和隐藏元素的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

google会忽略css中设置为display:none的元素中的单词吗?

Will google ignore words that are inside the elements that are set to "display: none" in css?

示例:

<div id="under_meny" style="display:none;">About Us | Contact Us</div>

看起来也许有点奇怪,我想隐藏一个菜单,但有一个子菜单。并将用户激活它。但我不想让它超越SEO。

It looks maybe a bit strange that I want to hide a menu like that, but there is a submenu. And will the user to activate it. But I do not want it to go beyond SEO.

推荐答案

使用javascript在pageload上隐藏您的菜单。这样google仍然会分析你的文本。它忽略 display:none 元素,以及textcolor与背景颜色相同,从而使其对于人眼不可见的元素

hide your menu with javascript on pageload. this way google will still analyse your text. it ignores display:none elements, as well as elements which textcolor is the same as background color, thus making it invisible to the human eye

来源:我很久以前在一本书中读过。有互联网上的网站,但有主题

sources: i read it in a book a long time ago. there are sites on the internet though on the topic

  • http://www.webdesign-in.de/mts/google-bestraft-display-none-visibility-hidden/
  • http://www.seroundtable.com/archives/002971.html
  • http://www.mattcutts.com/blog/seo-mistakes-nearly-hidden-text/
  • http://www.julian-bez.de/blog/2005/10/20/display-none-considered-spam/
  • http://searchengineland.com/is-hiding-content-with-display-none-legitimate-seo-13643

这篇关于Google搜索引擎优化和隐藏元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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