【问题标题】:How to use custom search box for google custom search?如何使用自定义搜索框进行谷歌自定义搜索?
【发布时间】:2016-09-19 13:28:54
【问题描述】:

如何使用自定义搜索框进行谷歌自定义搜索?

我需要将谷歌搜索框的样式更改为我自己的样式..

【问题讨论】:

  • 你实现了谷歌自定义搜索吗?或者你只是想知道如何覆盖样式?
  • 您需要谷歌自定义搜索或想要自定义谷歌搜索或两者兼而有之?
  • 其实我设计了一个搜索框,我需要使用它,而不是使用google的搜索框..

标签: html css twitter-bootstrap google-custom-search


【解决方案1】:

我认为你需要这个:

		<div id="globalsearch" class="globalsearch">
<form method="get" action="http://www.google.com/search" target="_blank" class="navbar_search"> <input type="hidden" name="sitesearch" value="yoursite.com"  id="pn"/>
				<input type="hidden" name="s" value="" />
				<input type="hidden" name="securitytoken" value="" />
				<input type="hidden" name="do" value="process" />
				<span class="textboxcontainer"><span><input placeholder="Search..." type="text" value="" name="query" class="textbox" tabindex="99"/></span></span>
			</form>
		</div>

你可以自定义你的类和css

  • 改变这个:value="yoursite.com"

【讨论】:

    猜你喜欢
    • 2018-12-13
    • 1970-01-01
    • 2015-10-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-06-21
    相关资源
    最近更新 更多