在网页中添加google搜索

网页中插入谷歌搜索,至于怎么上谷歌,后面有时间会更,推荐百度

1 <form method="GET" action="http://www.google.com.hk/search" class="form-group">
//name属性不能更改 否则无法提交问题跳转到检索的页面,而是直接调到Google搜索的主界面 2 <input type="text" class="form-control" value="" name=q size=31 maxlength=255 placeholder="Google" > 3 </form>

这应该算是最简洁的写法了,里面的class、placeholder、maxlength属性不是必须

原文地址:https://www.cnblogs.com/michealLang/p/8457863.html