我网站的 CSS 何时会影响我的搜索引擎排名?

发布于 2024-09-16 00:48:28 字数 237 浏览 3 评论 0原文

起初我认为 css 绝对没有什么用处,只是当用户在浏览器中查看文档时设计文档样式。但后来我意识到搜索引擎也在索引页面中使用CSS。我相信,搜索引擎不会为使用 display:hidden 的内容建立索引,并且会严重惩罚使用关键字堆叠的网站(用户从未见过的文本,要么与其背景颜色相同,要么看起来很远)离开屏幕)。

我的两个假设正确吗?搜索引擎还如何使用 CSS?能改变我的搜索引擎排名的 CSS 的具体例子会很棒。 :D

At first I thought css was used for absolutely nothing but styling the document when the user viewed it in a browser. But then I realized that css is also used by search engines in indexing pages. Search engines don't index content with display: hidden I believe, and heavily penalize sites that use keyword stacking (text that is never seen by the user, either the same color as its background or that appears far off the screen).

Are my 2 assumptions correct? How else is CSS used by search engines? Specific examples of CSS that would change my search engine ranking would be awesome. :D

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

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

发布评论

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

评论(2

莫言歌 2024-09-23 00:48:28

一般来说,你的假设是正确的。如果用户看不到该文本,则它不是有意义的文本,因此不会被索引。过去,网站管理员会通过在页面中放置不相关的关键字和文本并将其隐藏来欺骗系统,试图获得非法的搜索引擎点击。

此外,H1 等标题的使用以及页面上文本的位置(可能受 CSS 影响)也会对搜索评级产生影响。

In general, your assumptions are correct. If the text cannot be seen by the user, then it is not meaningful text, and therefore it is not indexed. In the past, webmasters would game the system by putting irrelevant keywords and text in their pages and hiding it, in an attempt to get illegitimate search engine hits.

In addition, use of headings such as H1 and the positioning of the text on the page (which can be affected by CSS) has an influence on search ratings.

逆蝶 2024-09-23 00:48:28

是的你是对的。使用关键字 SEO 和 CSS 在 google 上快速搜索,您会发现很多类似这样的文章:

http://www.stonetemple.com/articles/css-and-seo.shtml

Yes you are right. Do a quick search on google with the keywords SEO and CSS and you'll find plenty of articles like this one:

http://www.stonetemple.com/articles/css-and-seo.shtml

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