HTML第二次(百度)

 

 

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>百度</title>
    <style type="text/css">
        #middle{
            position: absolute;
            margin-left: 35%;
            width:30%;
            height: 100%;

        }
        #search{
            width: 95%;
            margin-left: 0px;
            height: 50px;

        }
        #input{
            width: 80%;
            margin-left: 0px;
            height: 49px;
        }
        #button{
            width: 15%;
            height: 50px;
            color: white;
            background-color: blue;
            border: 0px;

        }
        #button:hover{
            background-color: darkseagreen;
        }





    </style>
</head>
<body>
    <div id="middle">
        <div id="pic" >
            <img src="baidu.png"/>
        </div>
        <div id="search">
            <input id="input"></input>
            <button id="button">百度一下</button>
        </div>

    </div>

</body>
</html>

  

posted @ 2020-08-04 03:19  bingxingc  阅读(97)  评论(0编辑  收藏  举报