Home >Web Front-end >HTML Tutorial >css+html realizes simulation of Baidu homepage (with code)

css+html realizes simulation of Baidu homepage (with code)

不言
不言Original
2018-09-11 17:06:274328browse

The content of this article is about implementing simulated Baidu homepage in CSS HTML (with code). It has certain reference value. Friends in need can refer to it. I hope it will be helpful to you.

The code is as follows:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        #biaoqian{
               float: right;            
               margin: 10px;        
               }
        #d2,#d3,#d4,#d5,#d6,#d7,#d8,#d9{        
            margin: 5px;        
            }
        #title{           
         padding-left: 200px;        
         }
        .inputw{         
          height: 32px;            
          line-height: 30px;        
          }
        #pic{           
          margin-top: 180px;            
          padding-left: 380px;        
          }
        #and{           
         margin: 30px;            
         margin-top: 30px;        
         }
        #a1 {           
         padding-left:340px ;           
         margin-top: 40px;        
         }
        #erweima{           
         margin-top: 200px;            
         padding-left: 500px;        
         }
    </style>
    </head>
    <body>
    <div id="biaoqian">
    <a href="2.mp4" id="d2">新闻</a>
    <a href="2.mp4" id="d3">hao123</a>
    <a href="2.mp4" id="d4">地图</a>
    <a href="2.mp4" id="d5">视频</a>
    <a href="2.mp4" id="d6">贴吧</a>
    <a href="2.mp4" id="d7">学术</a>
    <a href="2.mp4" id="d8">登录</a>
    <a href="2.mp4" id="d9">设置</a>
    </div>
    <div id="and">
    <img  src="timg_看图王.jpg" id="pic"    style="max-width:90%" style="max-width:90%" alt="css+html realizes simulation of Baidu homepage (with code)" >
    <form>
    <div id="title">
    <input class="inputw" name="aa" type="text" size="70" >
    <input class="inputw" type="button" name="aa" onclick="helloword" value="百度一下"><br>
    </div>
    </form>
    </div>
    <div id="erweima">
    <img  src="百度二维码.png" alt="css+html realizes simulation of Baidu homepage (with code)" >
    </div>
    <div id="a1">
    <a href="2.mp4">把百度设为首页</a>
    <a href="2.mp4">关于百度</a>
    <a href="2.mp4">ABOUT BAIDU</a>
    <a href="2.mp4">百度推广</a>
    </div>
    </body>
    </html>

Running results:
css+html realizes simulation of Baidu homepage (with code)

Related recommendations:

php curl simulates login to Baidu homepage

css uses relative to imitate Baidu homepage top

The above is the detailed content of css+html realizes simulation of Baidu homepage (with code). For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn