模仿“百度”页面的html代码

3 篇文章 0 订阅
2 篇文章 0 订阅

模仿“百度”页面的html代码

<!DOCTYPE html>
<html lang="en">

<head class="ui semantic">
    <meta charset="UTF-8">
    <!-- <meta name="viewport" content="width=device-width, initial-scale=1.0"> -->
    <!-- //<meta http-equiv="X-UA-Compatible" content="ie=edge"> -->
    <title>baidu</title>
    <link href="http://ox6yf62u0.bkt.clouddn.com/semantic-ui/2.2.13/semantic.min.css" rel="stylesheet">
    <script src="http://ox6yf62u0.bkt.clouddn.com/jquery-2.1.4.min.js"></script>
    <script src="http://ox6yf62u0.bkt.clouddn.com/semantic-ui/2.2.13/semantic.min.js"></script>
    <style>
    .topheader>a {
        padding-right: 15px;
        color: black;
        background-color: #fff;
        /* text-decoration:underline; */
        font-weight: bold;
    }

    a {
        text-decoration: underline;
        color: rgba(109, 99, 99, 0.76);
        font-size: 5px;
    }


    .bri {
        display: inline-block;

        right: 10px;
        width: 60px;
        height: 23px;

        color: #fff;
        background: #38f;
        line-height: 24px;
        font-size: 13px;
        text-align: center;
        overflow: hidden;
        /*border-bottom: 1px solid #38f;*/
        margin-left: 19px;
        margin-right: 2px;
    }
    </style>
</head>

<body>
    <!-- top link start -->
    <div class="ui right aligned  topheader fluid container" style="padding: 30px">
        <a href="#">新闻</a>
        <a href="#">hao123</a>
        <a href="#">地图</a>
        <a href="#">视频</a>
        <a href="#">贴吧</a>
        <a href="#">学术</a>
        <a href="#">登录</a>
        <a href="#">设置</a>
        <div href="#" class="bri" style1="background-color: rgba(7, 28, 219, 0.952);text-decoration: none;color:white;padding-right: 0;display:inline-block;width:70px;height:15px;">更多产品</div>
    </div>
    <!-- top link end -->
    <div class="ui centered aligned grid container ">
        <div class="row">
            <div class="column" style="width: 270px;height: 129px;">
                <img class="ui  image" src="https://www.baidu.com/img/bd_logo1.png" alt="">
            </div>
        </div>
        <div class="row">
            <form class="column" style="width:640px;" method="GET" action="https://www.baidu.com/s" name="search">
                <div class="ui fluid  input action">
                    <input type="text" name="wd" placeholder="搜索...">
                    <button class="medium ui blue button" onclick="document.forms['search'].submit();">百度一下</button>
                </div>
            </form>
        </div>
    </div>
    <div class="ui one column center aligned stackable grid ">
        <div class="column" style="padding-top: 140px;font-weight: bold;color:rgba(71, 66, 66, 0.822)">
            <img src="https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/home/img/qrcode/zbios_efde696.png" alt="">
            </br>手机百度
        </div>
        <div class="column" style="color:rgba(109, 99, 99, 0.76);font-size:5px">
            <a href="#">把百度设为首页</a>
            <a href="#">关于百度</a>
            <a href="#">about baidu</a>
            <a href="#">百度推广</a>
            </br>
            ©2017 Baidu
            <a href="#" style="text-decoration-line:underline">使用百度前必读</a>
            <a href="#" style="text-decoration-line: underline">意见反馈</a>> 京ICP证030173号
            <i class="marker icon"></i> 京公网安备11000002000001号
        </div>
    </div>
</body>

</html>
百度页面HTML代码如下所示: ```html <!DOCTYPE html> <html> <head> <title>百度一下,你就知道</title> <meta charset="UTF-8"> <style> body { font-family: Arial, sans-serif; } #logo { margin-top: 100px; text-align: center; } #search { margin-top: 20px; text-align: center; } #search input[type="text"] { padding: 10px; font-size: 16px; } #search input[type="submit"] { padding: 10px 20px; font-size: 16px; background-color: #3385FF; color: #FFF; border: none; cursor: pointer; } #search input[type="submit"]:hover { background-color: #1E62E0; } </style> </head> <body> <div id="logo"> <img src="logo.png" alt="百度logo"> </div> <div id="search"> <form action="https://www.baidu.com/s" method="GET"> <input type="text" name="wd" placeholder="请输入关键字"> <input type="submit" value="搜索"> </form> </div> </body> </html> ``` 以上代码首先定义了一个HTML文档,设置了文档标题和字符编码。然后在`head`部分添加了内联样式,包括设置全局字体、调整`logo`和`search`栏的样式。接着在`body`部分添加了一个`logo`的`div`,其中包含了一个百度的logo图片。紧接着是一个`search`的`div`,其中包含了一个搜索表单,使用了百度搜索的`action`和`method`属性,并设置了一个输入框和一个提交按钮。 请注意,上述代码只是简单地模拟了百度页面HTML结构和样式,并没有涵盖百度页面的全部内容和功能。实际的百度页面可能会有更复杂和丰富的内容和交互。
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值