html5+css3手码百度页面

html5 源码

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">

    <meta http-equiv="X-UA-Compatible" content="IE=edge">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>百度一下,你就知道</title>

    <link rel="stylesheet" href="./baidu.css">

</head>

<body>

    <div class="dingbu-box">

        <div class="left">

            <span>新闻</span>

            <span>hao123</span>

            <span>地图</span>

            <span>贴吧</span>

            <span>视频</span>

            <span>图片</span>

            <span>网盘</span>

            <span>更多</span>

        </div>

        <div class="denglu">登录</div>

        <div class="shezhi">设置</div>

    </div>

    <div class="zhuti">

        <div class="banner"><img src="https://www.baidu.com/img/PCtm_d9c8750bed0b3c7d089fa7d55720d6cf.png" alt=""></div>

        <div class="shurukuang"></div>

        <div class="bdyx">百度一下</div>

    </div>

    <div class="resou">

        <div class="resou1">百度热搜</div>

        <div class="huan">☯ 换一换</div>

    </div>

    <div class="neirong">

        <ul class="leftul">

            <li class="neirongleft">

                <i class="i1">1</i>

                <span>特朗普拉奥巴马下水:他也藏了!</span>

            </li>

            <li class="neirongleft">

                <i class="i1">2</i>

                <span>高温下电费让人崩溃 有人一月花五千</span>

            </li>

            <li class="neirongleft">

                <i class="i2">3</i>

                <span>外贸数据超预期彰显中国经济韧性</span>

            </li>

        </ul>

        <ul class="rightul">

            <li class="neirongright">

                <i class="i2">4</i>

                <span>特朗普或将面临最高30年刑期</span>

            </li>

            <li class="neirongright">

                <i class="i3">5</i>

                <span>黑山发生枪击事件致11死6伤 </span>

            </li>

            <li class="neirongright">

                <i class="i3">6</i>

                <span>解码十年 解锁出一串发展密码</span>

            </li>

        </ul>

    </div>

    <div class="dibu">

        <p class="Ih">关于百度</p>

        <p class="Ih">About Baidu</p>

        <p class="Ih">使用百度前必读</p>

        <p class="Ih">帮助中心</p>

        <p class="Ih">企业推广</p>

        <p class="Ih">京公网安备11000002000001号</p>

        <p class="Ih">京ICP证030173号</p>

        <p class="Ih">信息网络传播视听节目许可证 0110516</p>

        <p class="Ih">药品医疗器械网络信息服务备案(京)网药械信息备字(2021)第00159号</p>

        <p class="Ih">医疗器械网络交易服务第三方平台备案凭证(京)网械平台备字(2020)第00002号</p>

        <p class="Ih">©2022 Baidu </p>

    </div>

</body>

</html>

css3源码

*{

    margin: 0;

    padding: 0;

    background: #fff;

}

ul li {

    list-style: none;

}

i{

    font-style:normal

}

.dingbu-box{

    width: 100%;

    height: 60px;

    /* border: 1px solid red; */

}

.dingbu-box .left{

    float: left;

    width: 480px;

    height: 60px;

    line-height: 60px;

    margin-left: 24px;

}

.dingbu-box .left span{

    padding-right: 24px;

    color: #222;

    font-size: 12px;

}

.denglu{

    width: 48px;

    height: 24px;

    background-color: #4e6ef2;

    color: #fff;

    margin-right: 24px;

    text-align: center;

    float: right;

    border-radius: 6px;

    font-size: 12px;

    margin-top: 19px;

    line-height: 24px;

}

.shezhi{

    width: 26px;

    height: 23px;

    font-size: 12px;

    color: #222;

    float: right;

    margin-right: 32px;

    margin-top: 22px;

}

.zhuti{

    width: 650px;

    height: 240px;

    /* border: 1px solid red; */

    margin: 0 auto;

    position: relative;

}

.zhuti .banner {

    width: 270px;

    height: 129px;

    margin: 0 auto;

}

.zhuti .banner img{

    width: 270px;

    height: 129px;

}

.shurukuang{

    width: 550px;

    height: 44px;

    border: 2px solid #4e6ef2;

    border-radius: 10px;

    margin-top: 24px;

}

.bdyx{

    z-index: 5;

    width: 108px;

    height: 48px;

    background-color: #4e6ef2;

    border-radius: 0 10px 10px 0;

    position: absolute;

    right: 0;

    top: 153px ;

    color: #fff;

    text-align: center;

    line-height: 44px;

    font-size: 17px;

    font-weight: 400;

}

.resou{

    width: 650px;

    height: 24px;

    margin: 0 auto;

    /* border: 1px solid red;    */

    line-height: 24px;

}

.resou1{

    float: left;

    color: #222;

    font-size: 18px;

    /* font-weight: bold; */

}

.huan{

    float: right;

    color: #626675;

    font-size: 14px;

}

.neirong{

    width: 650px;

    height: 110px;

    /* border: 1px solid red;    */

    margin: 10px auto;

    font-size: 16px;

    position: relative;

}

.neirong .neirongleft{

    width: 306px;

    height: 36px;

    color: #222;

    line-height: 36px;

}

.neirong .neirongleft .i1{

    width: 22px;

    height: 22px;

    color: #fe2d46;

    margin-right: 10px;

}

.neirong .neirongleft .i2{

    width: 22px;

    height: 22px;

    color: #faa90e;

    margin-right: 10px;

}


 

.neirong .rightul{

    position: absolute;

    right: 0;

    top: 0;

}

.neirong .neirongright{

    width: 306px;

    height: 36px;

    color: #222;

    line-height: 36px;

}

.neirong .neirongright .i2{

    padding-left: 30px;

    width: 22px;

    height: 22px;

    color: #faa90e;

    margin-right: 10px;

}

.neirong .neirongright .i3{

    padding-left: 30px;

    width: 22px;

    height: 22px;

    color: #9195a3;

    margin-right: 10px;

}

.dibu{

    width: 100%;

    height: 39px;

    position: fixed;

    bottom: 0;

    left: 0;

    /* border: 1px solid red; */

    text-align: center;

}

.dibu .Ih{

    display: inline-block;

    margin-right: 14px;

    color: #bbb;

    font-size: 12px;

    line-height: 39px;

}

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值