【发布时间】:2011-06-24 00:59:21
【问题描述】:
我有一些内容想与其他网站分享。
目前我通过 iframe 执行此操作:
<iframe width=“540”; height=“700” frameborder=“0” src=“http://www.energiekostencalculator.nl/forms/frame_tabs.php?first=yes&product=1&links=1&css=http://www.energiekostencalculator.nl/forms/susteen.css”></iframe>
这有两个问题。
- 它对 SEO 不友好。 iframe 内容上的链接不算作入站链接,因为它们的页面托管在我的服务器上。
- (无论如何在我的服务器上)无法将外部 css 样式表链接到 iframe 的内容。目的是让其他网站能够轻松地将其样式表链接到我的内容。
谁有解决这些问题的办法? 也许使用 jquery(见下文),但我不确定 Google 会解析它并“查看”链接......
<html>
<head>
<script src="/js/jquery.js" type="text/javascript">
</head>
<body>
<div id='include-from-outside'></div>
<script type='text/javascript'>
$('#include-from-outside').load('http://example.com/included.html');
</script>
</body>
</html>
【问题讨论】:
标签: php javascript ajax iframe seo