【发布时间】:2015-04-25 17:11:35
【问题描述】:
我想知道是否有人知道使用引导程序 visible 类创建响应式网站对 SEO 的影响?我使用这些类创建了一个带有 Bootstrap 的新网站。在大多数页面上,主要内容在左侧,然后在页面右侧有许多链接。我的结构是这样的:
<div class="row">
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
//Main content here on left of page
</div>
<div class="col-lg-6 col-md-6 visible-lg visible-md">
//Content on right of page for large and medium devices
</div>
<!--SMALL STARTS HERE-->
<div class="col-sm-12 visible-sm">
//Same content but drops below main content of page for small devices
</div>
<!--EXTRA SMALL STARTS HERE-->
<div class="col-xs-12 visible-xs">
//Same content again but drops below main content and is rendered for phones
</div>
</div>
所以我的问题是这是否是一个坏主意?我担心 Google/Bing/Yahoo 会将此视为我页面上的重复内容并因此对我进行处罚。这是我应该担心的问题吗?谢谢。
【问题讨论】:
-
您不需要复制 html 来添加更多类。 bootstrap col 类用于不同的断点。因此它将识别哪些在运行时应用。这样就不用担心可能会损害您的搜索引擎优化和页面加载时间的重复内容。
标签: css twitter-bootstrap seo