CSS 样式页面列表中的隐藏属性是否会降低网站性能?

发布于 2024-08-09 18:24:38 字数 265 浏览 3 评论 0原文

在网站页面的CSS样式表中我使用了很多隐藏属性 就像 overflow:hiddendisplay:none;

这对 SEO?这对搜索引擎(SE)友好吗? 会受到搜索引擎(SE)的惩罚吗? CSS 样式页面列表中的隐藏属性会降低网站性能吗?

In CSS style table of website pages I have used a lot of hidden attributes
like overflow:hidden and display:none;

Does this has effect for SEO? Is this friendly for search engines (SE)?
Can it be punished by search engine (SE)? Can hidden attributes in CSS style table of pages lower the website power?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

宫墨修音 2024-08-16 18:24:39

根据谷歌的说法,如果隐藏文本的目的是影响搜索索引排名,那么隐藏文本是不行的。

请阅读以下内容,了解来自 Google 的更多信息:

http: //www.google.com/support/webmasters/bin/answer.py?hl=zh-CN&answer=66353

Hidden text is NOT OK if it's purpose is to affect the search index ranking, according to Google.

Read this for more info from Google:

http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=66353

童话里做英雄 2024-08-16 18:24:39

@aicuxiao 我们假设您询问隐藏内容是否会影响搜索引擎将索引的内容,从而影响您在非付费搜索结果上的自然排名。

在 SEO 方面,像人一样思考非常重要 - 如果您编写的内容不希望任何人看到,则假设搜索引擎也不会看到它。有些搜索引擎可能会索引隐藏内容,有些则不会。然而,搜索引擎的目标通常是为人类提供相关结果,因此索引可能会被调整为在索引时像人类一样“思考”。如果您以这种心态思考,您将来就不会因从搜索结果中删除某些内容而陷入困境。

我希望这有帮助。

@aicuxiao We're presuming that you're asking about whether hidden content affects what search engines will index, and therefore affect your natural rankings on non-paid search results.

It's important to think like a human when it comes to SEO—if you write content that you don't wish any person to see, presume that search engines won't see it either. It may be the case that some search engines will index hidden content and some will not. However, it is generally the goal of a search engine to serve relevant results to humans, and so indexing is likely to be tuned to "think" like a human when indexing. If you think with this mindset, you won't get caught out in the future by having some of your content removed from search results.

I hope that helps.

芸娘子的小脾气 2024-08-16 18:24:39

display:none 对于视觉浏览器和语音浏览器都有意义。因为它应该被双方忽略。 visibility:hidden 应该只影响可视浏览器。请注意,实际的浏览器开发人员必须遵守这些规则。

大多数 SEO 公司会告诉你避免过多使用两者,有些公司害怕你使用它们来创建 CSS 下拉菜单!

如果 height 也添加到元素中,则 overflow:hidden 只会屏蔽文本,因此我想说,如果您尝试在其中一个搜索中隐藏大量文本引擎会解决这个问题。

基本上,如果您认为自己很狡猾,但添加了普通用户实际上看不到的链接和文本,那么搜索引擎最终会(如果他们还没有弄清楚您想要做什么并禁止您的页面)。然而,如果您不试图愚弄人们,而只是尽最大努力使网络成为一个有用且有价值的地方来查找人们正在寻找的内容,那么您就会做得很好。

display:none has meaning for both visual browsers and voice browsers. In that it should be be ignored by both. visibility:hidden should only affect visual browsers. Please note that it is down the actual browser developers to obey these rules.

Most SEO companies would tell you to avoid using both too much, and some get scared of you using them to create CSS drop down menus!!

overflow:hidden will only block out text if height is also added to the element so I'd say that if you try and hide vast amounts of text within one of those search engines would figure that out to.

Basically if you think your being sneaky and clever but adding links and text that won't actually be seen by a regular user then the search engines will eventually if they don't already figure out what your trying to do and ban your page. If however you don't try and fool people and simply try your hardest to make the Web a useful and valuable place to find what people are looking for you'll do well.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文