首页 > Web开发 > 详细

在网页中添加google搜索

时间:2018-02-22 00:54:42      阅读:265      评论:0      收藏:0      [点我收藏+]

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

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属性不是必须

在网页中添加google搜索

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!