问题
How to use custom search box for google custom search?
I need to change the style for google search box into my own style..
回答1:
I think you need this:
<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>
you can custom your class and css
- change this:
value="yoursite.com"
来源:https://stackoverflow.com/questions/39574444/how-to-use-custom-search-box-for-google-custom-search