于是上网查了资料,没想到就几行代码的事。
下面是调用百度的一个代码段:
代码如下:
<!--在页面中调用百度引擎-->
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>调用百度引擎</title>
</head>
<body>
<div id="container">
<form action="http://www.baidu.com/baidu" target="_blank">
<div align="center">
<input name=tn type=hidden value=baidu>
<a href="http://www.baidu.com/">
<img src="http://img.baidu.com/search/img/baidulogo_clarity_80_29.gif" alt="Baidu" align="bottom" border="0"></a>
<input type=text name=word size=30>
<input type="submit" value="百度搜索"></div>
</form>
</div>
</body>
</html>
怎么样?够简单吧,还想着有多难呢。
查看更多关于在页面中调用搜索引擎以调用百度为例的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did39016