Html 我可以将谷歌博客网站嵌入我的网站吗
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/34313391/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Can I embed google blogger site into my website
提问by Paul Taylor
I have a blogger blog and I have already successfully had the domain set to a subdomain of my website e.g http://blog.jthink.net
我有一个博主博客,我已经成功地将域设置为我网站的子域,例如http://blog.jthink.net
But how do I actually embed the blog onto my website so that it has same header and footer as my main website ( http://www.jthink.net) so it's more like the way they have done it here
但是我如何将博客实际嵌入到我的网站上,以便它与我的主网站(http://www.jthink.net)具有相同的页眉和页脚,所以它更像是他们在这里完成的方式
Is it even possible with blogger?
博主甚至可以吗?
采纳答案by Paul Taylor
Whilst iFrames is literally speaking the way to embed the blog on your webpage it means you cant give people links to a particular post within the blog, so it doesnt treally work very well.
虽然 iFrames 从字面上讲是在您的网页上嵌入博客的方式,但这意味着您不能向人们提供指向博客中特定帖子的链接,因此它实际上并不能很好地工作。
In the end I found you could simply the customize the blogger template to make your blog look like your other pages, I found this worked better than using iframes.
最后我发现你可以简单地自定义博客模板,让你的博客看起来像你的其他页面,我发现这比使用 iframe 效果更好。
回答by Rashwan L
Just use an iFrame for this purpose. To embed a webpage in an iFrame
in your own blog of a website is equivalent to copying that webpage into your own website or blog.
只需为此目的使用 iFrame。将网页嵌入iFrame
到您自己的网站博客中,相当于将该网页复制到您自己的网站或博客中。
Adjust the width
and height
to your own values that you would like to use.
将width
和调整height
为您想要使用的值。
<iframe src ="URL of the website you want to embed" width="100%" height="500"> </iframe>
You could also add
你也可以添加
<p>Your browser does not support iFrames.</p>
To notify if a user uses a browser that does not support iFrame.
通知用户是否使用不支持 iFrame 的浏览器。
So the complete code will be
所以完整的代码将是
<iframe src ="URL of the website you want to embed" width="100%" height="500">
<p>Your browser does not support iFrames.</p>
</iframe>
回答by Dantson Hebert
I'm surprised nobody suggested RSS feed subscriptions.
我很惊讶没有人建议订阅 RSS 提要。
If it's a blogger site then you can just subscribe to the standard site feed in your current CMS (content management system). See this link for more information: support.google.com/blogger/answer/97933?hl=en
如果它是博客站点,那么您只需订阅当前 CMS(内容管理系统)中的标准站点提要即可。有关详细信息,请参阅此链接:support.google.com/blogger/answer/97933?hl=en
In fact, I think this is exactly how the blog you linked to achieved their effect. All the navigation baggage of the original blogger site is left behind and only the content of each post is automatically reposted via RSS content subscription -> blog.beatunes.com/atom.xml
事实上,我认为这正是您链接的博客如何实现其效果的。原博主站点的所有导航包袱都被抛在脑后,只有每篇文章的内容通过RSS内容订阅-> blog.beatunes.com/atom.xml自动转发
Tools to achieve this:
-Wordpress: wordpress.org/plugins/wp-rss-aggregator
-Joomla!: extensions.joomla.org/extension/simple-rss-feed-reader
-Drupal: drupal.org/node/326575
-SharePoint: lol *highfive*
回答by Kumar Vivek
Either you can used an iFrame or you can used an Individual div for the Particular site. Then you can embedded it within the site.
您可以使用 iFrame,也可以为特定站点使用单独的 div。然后您可以将其嵌入到站点中。
Be assure that you can adjust the Width and height of the frame or div through the CSS. here is a simple code which help to embedded the blogger site within your existing site.
请确保您可以通过 CSS 调整框架或 div 的宽度和高度。这是一个简单的代码,有助于将博客站点嵌入到您现有的站点中。
<iframe src ="www.xyz.com" width="100%" height="100%"> </iframe>
If for any reason the browser doesn't support iFrame you can notify the user for it. By Using the Paragraph or any other tag.
如果由于任何原因浏览器不支持 iFrame,您可以通知用户。通过使用段落或任何其他标签。
回答by nimosza
I'm a bit late to the party but If you want an alternative to straight out embedding your blog you could use the the Blogger api?
我参加聚会有点晚了,但是如果您想要另一种方法来直接嵌入您的博客,您可以使用Blogger api吗?
To my mind that would be the best solution.
在我看来,这将是最好的解决方案。
回答by seoyoochan
You can use iframe to embed your blog onto the website.
for example, http://jsfiddle.net/pablofiumara/mCfAe/
您可以使用 iframe 将您的博客嵌入网站。
例如,http://jsfiddle.net/pablofiumara/mCfAe/
References: https://developer.mozilla.org/ko/docs/Web/HTML/Element/iframe
参考: https://developer.mozilla.org/ko/docs/Web/HTML/Element/iframe
回答by seoyoochan
iframes are best for this. Most browsers support them.
Maybe you could use adobe business catalyst page templates?
iframe 最适合这个。大多数浏览器都支持它们。
也许您可以使用 adobe 业务催化剂页面模板?