6 Star 0 Fork 0

hi / webCollection

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
baidu.html 2.72 KB
一键复制 编辑 原始数据 按行查看 历史
Amos-UTF-8 提交于 2020-05-25 08:55 . 修改搜索ifram
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<style>
.search-baidu {
position: relative;
top: 4px;
display: inline-block;
}
.box {
display: flex;
align-items: flex-end;
justify-content: center;
flex-wrap: wrap;
}
.logo {
text-decoration: none;
display: inline-block;
}
.logo img {
width: 148px;
}
</style>
<form style="height: 100%;margin: 0;" method="get" action="http://www.baidu.com/baidu?word=" id="form2" name="form2"
target="_blank">
<table bgcolor="#FFFFFF" style="width: 100%;">
<tr>
<td class="box">
<input name="tn" type="hidden" value="baidu" />
<a href="http://www.baidu.com/" target="_blank" class="logo">
<img src="https://m.baidu.com/se/static/img/iphone/logo.png" alt="Baidu" align="bottom" border="0" />
</a>
<div class="search-baidu">
<input type="text" id="sea" name="word" size="30" autocomplete="off"
style=" height: 34px; width: 80%; font-size: 14px; padding-left: 10px; outline: none; border-top-left-radius: 5px; border-bottom-left-radius: 5px; border: 1px solid #b2c9d3; border-right: 0;" />
<input type="submit" value=""
style="position:absolute;height: 34px; width: 34px; border: 0; background: #c1ddaf url(image/search.png) 50% 50%/ 21px no-repeat; border-top-right-radius: 5px; border-bottom-right-radius: 5px;" />
</div>
</td>
</tr>
</table><input name="q" type="hidden" /><input name="myvalue" type="hidden" value="1" /><input name="tn"
type="hidden" /><input name="ct" type="hidden" /><input name="lm" type="hidden" /><input name="cl"
type="hidden" /><input name="rn" type="hidden" />
</form>
<script>
function getArgs() {
var passedArgs = new Array();
var search = self.location.href;
search = search.split('?');
if (search.length > 1) {
var argList = search[1];
argList = argList.split('&');
for (var i = 0; i < argList.length; i++) {
var newArg = argList[i];
newArg = argList[i].split('=');
passedArgs[unescape(newArg[0])] = unescape(newArg[1]);
}
}
return unescape(newArg[1]);
}
var Content = window.parent.document.getElementById('Content').value;
document.getElementById('sea').value = Content;
window.addEventListener("load", function () {
if (screen.width <= 750) {
document.querySelector(".logo").style.width = '100%'
document.querySelector(".logo").style.textAlign = 'center'
document.querySelector(".search-baidu").style.width = '100%'
document.querySelector(".search-baidu").style.textAlign = 'center'
} else {
document.querySelector(".logo").style.marginRight = '17px'
}
})
</script>
</body>
</html>
1
https://gitee.com/yanglihao2006/webCollection.git
git@gitee.com:yanglihao2006/webCollection.git
yanglihao2006
webCollection
webCollection
master

搜索帮助