因此,如果您可以在 HTML 中找到该内容,并且该内容不是由 CSS 或 JavaScript 创建的,那么蜘蛛程序将找到该内容并为其编制索引。如果它是由 JavaScript 或 CSS 动态创建的,那么蜘蛛将无法找到它。 (Google 的可抓取 Ajax 确实可以与 Google 配合使用,但这是构建网站的一种非常糟糕的方式)。
As a general rule spiders do not parse CSS. What CSS parsing they do typically has to do with finding possible cloaking through display:none and other tricks. But just using these CSS rules in-and-of themselves are not going to get a site into trouble as there are lots of legitimate uses for these rules. It's only when they are used for cloaking or other black hat SEO that a penalty will be incurred.
So if you can find the content in your HTML, and it is not created by CSS or JavaScript, then the spiders will find and index that content. If it is dynamically created by JavaScript or CSS then it will not be found by the spiders. (Google's crawlable Ajax does work with Google but that's a very bad way to go about building a site).
发布评论
评论(1)
一般来说,蜘蛛不会解析 CSS。他们所做的 CSS 解析通常与通过
display:none
和其他技巧查找可能的伪装有关。 但是仅仅使用这些 CSS 规则本身并不会给网站带来麻烦,因为这些规则有很多合法用途。只有当它们用于伪装或其他黑帽 SEO 时,才会受到处罚。因此,如果您可以在 HTML 中找到该内容,并且该内容不是由 CSS 或 JavaScript 创建的,那么蜘蛛程序将找到该内容并为其编制索引。如果它是由 JavaScript 或 CSS 动态创建的,那么蜘蛛将无法找到它。 (Google 的可抓取 Ajax 确实可以与 Google 配合使用,但这是构建网站的一种非常糟糕的方式)。
As a general rule spiders do not parse CSS. What CSS parsing they do typically has to do with finding possible cloaking through
display:none
and other tricks. But just using these CSS rules in-and-of themselves are not going to get a site into trouble as there are lots of legitimate uses for these rules. It's only when they are used for cloaking or other black hat SEO that a penalty will be incurred.So if you can find the content in your HTML, and it is not created by CSS or JavaScript, then the spiders will find and index that content. If it is dynamically created by JavaScript or CSS then it will not be found by the spiders. (Google's crawlable Ajax does work with Google but that's a very bad way to go about building a site).