仿写百度(百度一下 你就知道)搜索页面

                                     **主页面展示:**

在这里插入图片描述页面代码(HTML)

<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>百度一下,你就知道</title>
    <link rel="icon" href="BAIDU.ico"/>
    <link class="" rel="stylesheet" href="baidu1.css"/>
</head>
<body>
<div class="center">
    <a href=""><img src="baidu11.PNG" alt=""/></a>
</div>
<div class="input">
    <form action="#"  method="get"><span><input type="text" maxlength="100" /></span><span class="photo"></span><input type="submit" value="百度一下"/>

    </form>

</div>
</body>
</html>

CSS代码:


*{
    margin:0;
    padding:0;
}
body{font:14px/24px '微软雅黑','宋体'}
.center{
    width: 800px;

    margin-left: 650px;
    margin-top: 100px;
    margin-bottom: 20px;

}
.center img{
    width: 220px;
    height: 75px;
}
.input span{
    padding-left: 440px;
    float: left;
    white-space: nowrap;
}
input[type="text"]{
    -web-kit-appearance:none;
    -moz-appearance: none;
    display: block;
    margin: 0 auto;
    font-size:15px;

}
input[type="text"]{
    height:39px;
    width:520px;
    border:1px solid #38f;

    outline:0;
    padding-left: 8px;
}
input[type="submit"]{
    margin: 0;
    height: 41px;
    width: 100px;
    background: #38f;
    color: #fff;
    font:16px  '微软雅黑';
    border:none;

}
input[type="submit"]:hover{
    background: #0e62a3;
    cursor: pointer;
}


  • 1
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值