如何嵌入 Google 搜索 [英] How to Embed Google Search

查看:44
本文介绍了如何嵌入 Google 搜索的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直想知道如何在网页中嵌入 Google.是否可以将它放在 iframe 中?我知道有些网站使用 Google CSE,但我想要真正的 Google.如果是这样,我该怎么做?

I have always wondered how to embed Google on a webpage. Is it possible to put it in an iframe? I know that some websites use Google CSE, but I want the real Google. If so, how can I do this?

推荐答案

您可以嵌入 这个 URL(又名 https://www.google.com/webhp?igu=1&gws_rd=ssl)在 iframe 中,没有失败.?igu=1 是让它工作的原因.我从 agoogleaday.com 找到了这个答案,它使用 iframe 来容纳一个实验性的 Google搜索网站.

You can embed this URL (aka https://www.google.com/webhp?igu=1&gws_rd=ssl) in an iframe without fail. The ?igu=1 is what makes it work. I found this answer from agoogleaday.com, which uses an iframe to house an experimental Google search website.

<iframe src="https://www.google.com/webhp?igu=1&gws_rd=ssl" width="640" height="480" frameborder="0">Your browser does not support <code>iframe</code>s. Please consider using a <a href="http://browsehappy.com/">modern</a> browser.</iframe>

这篇关于如何嵌入 Google 搜索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆