css+html工商银行小项目

完整代码html+css

<!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="./css/index.css">
</head>

<body>
    <div class="header">
        <div class=" container">
            <div>
                <div>个人客户</div>
                <div>企业客户</div>
                <div>本网站支持IPV6</div>
            </div>
            <ul>
                <li>全球主站</li>
                <li>分支机构</li>
                <li>服务网点</li>
                <li>客户服务</li>
                <li>人才招聘</li>
                <li>繁体/EN</li>
            </ul>
        </div>
    </div>
    <div class="logo">
        <div class="container">
            <div>
                <img src="./image/logo.png" alt="">
            </div>
            <div>
                <div>
                    <input type="text" placeholder="请输入关键字">
                </div>
                <div>
                    <img src="./image/search_icon.png" alt="搜索">
                </div>

            </div>
        </div>

    </div>
    <div class="nav">
        <div class="container">
            <ul>
                <li><a href="#">账户服务</a></li>
                <li><a href="#">存款与贷款</a></li>
                <li><a href="#">信用卡</a></li>
                <li><a href="#">投资理财</a></li>
                <li><a href="#">私人银行</a></li>
                <li><a href="#">金融市场</a></li>
            </ul>
        </div>
    </div>
    <div class="banner">
        <img src="./image/banner.jpg" alt="banner">
        <div>
            <div>
                <span>个人网上银行登录</span>
                <ul>
                    <li>注 册</li>
                    <li>业务指南</li>
                    <li>网银助手</li>
                    <li>客户端下载</li>
                    <li>安全专区</li>
                    <li>防范假网站</li>
                </ul>
            </div>
            <div>
                <span>企业网上银行登录</span>
                <ul>
                    <li>注 册</li>
                    <li>业务指南</li>
                    <li>网银助手</li>
                </ul>
            </div>
            <div>
                <span>融 e 购电商平台</span>
                <ul>
                    <li>个人商城</li>
                    <li>企业商城</li>
                    <li>扶贫馆</li>
                </ul>
            </div>
        </div>
    </div>
    <div class="notice">
        <div class="container">
            <div>
                <div>
                    <span>
                        重要公告∶关于调"人民币和美元账户钯金报价价差的通告
                    </span></div>
                <div>更多公告</div>
            </div>
            <hr>
            <div>
                <ul>
                    <li>
                        <img src="./image/serveTop1_1.png" />
                        <div>常用查询</div>
                    </li>
                    <li>
                        <img src="./image/serveTop2_1.png" />
                        <div>注册申请</div>
                    </li>
                    <li>
                        <img src="./image/serveTop3_1.png" />
                        <div>在线预约</div>
                    </li>
                    <li>
                        <img src="./image/serveTop4_1.png" />
                        <div>生活缴费</div>
                    </li>
                    <li>
                        <img src="./image/serveTop5_1.png" />
                        <div>行情工具</div>
                    </li>
                </ul>
            </div>
        </div>
    </div>
    <div class="aside">
        <div><img src="./image/xiaoevid.png" alt=""></div>
        <div><img src="./image/sideNav_er_b_ie8.png" alt=""></div>
        <div><img src="./image/xiaoevid.png" alt=""></div>
        <div><img src="./image/sideNav_er_b_ie8.png" alt=""></div>
    </div>
    <div class="main">
        <div class="container">
            <div class="title">
                投资理财
            </div>
            <div class="nav1">
                <ul>
                    <li>理财</li>
                    <li>贵金属</li>
                    <li>基金</li>
                    <li>外汇</li>
                    <li>保险</li>
                </ul>
            </div>
            <div class="news">
                <div class="head">
                    <div>
                        <div>最新披露</div>
                        2019年第106期中国工商银行个人人民币结构性...
                    </div>
                    <div>
                        更多...
                    </div>
                </div>
                <div class="middle">
                    <div>
                        理财精选
                        <div>
                            <p>保本稳利364天理财</p>
                            <p>预期年化收益率/业装基准</p>
                            <p>3.45%-3.60%</p>
                            <p>数据日期(2019-08-12 )</p>
                            <p>投资期限最短364天</p>
                            <p>起购金额1万</p>
                            <div>立即抢购</div>
                        </div>
                    </div>
                    <div>
                        大家都在买
                        <div>
                            <p>保本型个人随心E1号理财</p>
                            <p>期限短,收益高</p>
                            <div>立即抢购</div>
                        </div>
                        <div>
                            <p>保本型个人随心E1号理财</p>
                            <p>期限短,收益高</p>
                            <div>立即抢购</div>
                        </div>
                        <div>
                            <p>保本型个人随心E1号理财</p>
                            <p>期限短,收益高</p>
                            <div>立即抢购</div>
                        </div>
                    </div>
                    <div>
                        <img src="./image/jjmhtoutu325_460_190530.jpg" alt="">
                    </div>
                </div>
            </div>
            <div class="fincal">
                <div>
                    便利金融
                </div>
                <div>
                    <ul>
                        <li>融e购</li>
                        <li>汇款支付</li>
                        <li>消费旅游</li>
                        <li>留学服务</li>
                        <li>移动金融</li>
                        <li>个人贷款</li>
                    </ul>
                </div>
                <div class="end">
                    <div class="left">
                        <img src="./image/bljr_1.jpg" alt="">
                    </div>
                    <div class="right">
                        <div>
                            <div> e购超市</div>
                            <div>品类齐全轻松购物</div>
                            <div>每日秒杀人放价</div>
                            <div class="details">了解详情</div>
                            <div class="img">
                                <img src="./image/bljr_3.png" alt="">
                            </div>
                        </div>
                        <div>
                            <div> e购超市</div>
                            <div>品类齐全轻松购物</div>
                            <div>每日秒杀人放价</div>
                            <div class="details">了解详情</div>
                            <div class="img1">
                                <img src="./image/bljr_2.png" alt="">
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="footer">
        <div class="container">
            <div>
                <ul>
                    <li>网站声明</li>
                    <li>服务网点</li>
                    <li>网站地图</li>
                    <li>联系我行</li>
                    <li>服务热线</li>
                </ul>
            </div>
            <div>
                中国工商银行版权所有 京ICP证 030247号
            </div>
        </div>
    </div>
</body>

</html>
*{
    margin: 0;
    padding: 0;
}
.container{
    width: 1000px;
    margin: 0 auto;
}
.header{
    height: 35px;
    text-align: center;
    line-height: 35px;
    background-color: #f2f2f2;
}
.header>div>div>div{
    float: left;
    width: 90px;
} 
.header>div>div>div:hover{
    background-color: #c7000b;
}
.header>div>div>div:last-child{
    width: 120px;
    margin-left: 40px;
}
/* .header>div:nth-last-child(){
    margin-left: 50px;
} */
.header ul{
    float: right;
}
.header ul li{
    width: 90px;
    float: left;
    list-style: none;
}
.header ul li:hover{
    background-color: #c7000b;
}
/* logo */
.logo {
    height: 80px;
}
.logo .container>div:first-child{
    height: 76px;
    margin-top: 4px;
    float: left;
}
.logo .container>div:last-child{
    float: right;
    margin-right: 15px;
}
.logo input{
    height: 36px;
    border-right: none;
    border: dashed 0.5px grey;
    /* 调节字间距 */
    letter-spacing: 3px;
    text-indent: 10px;
}
.logo .container>div:last-child>div{
    height: 34px;
    margin-top: 22px;
    float: left;
}
.logo .container>div:last-child>img{
    margin-top: 22px;
}

/* 导航 */
.nav{
    height: 45px;
    background-color: #c7000b;
}
.nav ul{
    width: 1000px;
    height: 45px;
    background:url(../image/shu.png) no-repeat right 15px;
    margin: 0 auto;
    position: relative;

}
.nav ul li{
    width: 165px;
    float: left;
    list-style: none;
    text-align: center;
    line-height: 45px;
    background: url(../image/shu.png) no-repeat left 15px;
}
.nav ul li a{
    text-decoration:none;
}
.nav .container ul li a{
    text-decoration:none;
    color: white;
}

/* 轮播图 */
.banner{
    height: 380px;
    overflow: hidden;
    position: relative;
}
.banner img{
    position: absolute;
    left: calc(50% - 1900px/2);
}
.banner>div{
    width: 268px;
    height: 345px;
    position: absolute;
    top: 20px;
    left: calc(50% - 500px);
    background-color: white;
}
.banner>div>div{
    background-color: #c7000b;
    height: 42px;
    width: 238px;
    margin-top: 10px;
    margin-bottom: 60px;
    margin-left: 15px;
    text-align: center;
    line-height:42px ;
    color: white;
}
.banner>div>div:first-child{
    margin-bottom: 90px;
}
.banner>div>div:first-child>ul>li{
    float: left;
    width: 78px;
    height: 40px;
    color: black;
    list-style: none;
    font-size: 13px;
    line-height:40px ;
    margin-top: 3px;
}
.banner>div>div:nth-child(2)>ul>li{
    float: left;
    width: 78px;
    height: 46px;
    color: black;
    list-style: none;
    font-size: 13px;
    line-height:46px ;
    margin-top: 3px;
}
.banner>div>div:nth-child(3)>ul>li{
    float: left;
    width: 78px;
    height: 46px;
    color: black;
    list-style: none;
    font-size: 13px;
    line-height:46px ;
    margin-top: 3px;
}

/* 公告 */
.notice{
    height: 240px;
    background-color: #f2f2f2;
}
.notice>.container>div:first-child{
    height: 40px;
}

.notice>.container>div:first-child>div:first-child{
    float: left;
}
.notice>.container>div:first-child>div:first-child>span{
    line-height: 40px;
    text-align: center;
}
.notice>.container>div:first-child>div:last-child{
    float: right;
    line-height: 40px;
}
.notice>.container>div:last-child ul{
    height: 200px;
}
.notice>.container>div:last-child ul li{
    list-style: none;
    float: left;
    width: 140px;
    padding-left: 60px;
    position: relative;
    height: 200px;
    margin-top: 30px;
}
.notice>.container>div:last-child ul li>div{
    margin-top: 30px;
}
.notice hr{
    width: 100%;
    border: 0.1px solid grey;
}
/* 侧边栏 */
.aside{
    position: fixed;
    right: 20px;
    bottom: 100px;

}
.aside div{
    margin-top: 10px;
}
/* 主体 */
.main{
    height: 1180px;
}
.main .title{
   height: 60px;
   /* margin-left: 30px; */
   font-size: 22px;
   /* margin-top: 40px; */
   border-bottom: 5px solid #d0d0d0;
}
.main .nav1{
    height: 70px;
}
.main .nav1 ul{
    height: 70px;
    text-align: center;
    line-height: 70px;
}
.main .nav1 ul li{
    float: left;
    list-style: none;
    width: 115px;
}

/* 最新消息 */
.news .head{
    height: 80px;
    line-height: 80px;
}
.news .head div{
    float: left;
}
.news .head div>div{
    height: 30px;
    width: 90px;
    background-color: #ff6200;
    color: white;
    text-align: center;
    line-height: 30px;
    margin-top: 24px;
}
.news .head div:nth-child(2){
    margin-left: 135px;
}
.news .middle>div:nth-child(1){
    font-size: 20px;
    float: left;
}
.news .middle>div>div{
    width: 328px;
    height: 330px;
    text-align: center;
    border: 1px solid #e5e5e5;
    line-height: 46px;
}
.news .middle>div>div>p:nth-child(3){
    font-size: 30px;
    color: #ff6200;
}
.news .middle>div>div>p:nth-child(1){
    font-size: 22px;
    font-weight: bold;
}
.news .middle>div>div>p:nth-child(5){
    font-size: 22px;
    font-weight: bold;
}
.news .middle>div>div>p:nth-child(6){
    font-size: 22px;
    font-weight: bold;
}
.news .middle>div>div>p:nth-child(2){
    font-size: 20px;
    color: #9999b3;
}
.news .middle>div>div>p:nth-child(4){
    font-size: 20px;
    color: #9999b3;
}
.news .middle>div>div>div{
    width: 180px;
    height: 40px;
    background-color: #ff6200;
    color: white;
    margin-left: 80px;
}
.news .middle>div:nth-child(2){
    font-size: 20px;
    float: left;
    width: 328px;
    height: 360px;
    /* text-align: center; */
    margin-left: 15px;
}
.news .middle>div:nth-child(2)>div{
    height: 109px;
}
.news .middle>div:nth-child(2)>div>p:nth-child(1){
    font-size: 18px;
}
.news .middle>div:nth-child(2)>div>p:nth-child(2){
    color: #ff6200;
    line-height: 20px;
    font-size: 18px;
}
.news .middle>div:nth-child(2)>div>div{
    height: 36px;
    width: 90px;
    background-color: #f2f2f2;
    float: right;
    margin-right: 10px;
    font-size: 18px;
    line-height: 36px;
}
.news .middle>div:nth-child(3){
    height: 360px;
}
.news .middle>div:nth-child(3)>img{
    height: 360px;
    margin-left: 70px;
}
.main .fincal>div:nth-child(1){
    border-bottom: #9999b3 5px solid;
    font-size: 22px;
    height: 40px;
    margin-top: 12px;
    
}
.main .fincal div:nth-child(2) ul{
    height: 80px;
    line-height: 80px;
    text-align: center;
}
.main .fincal div:nth-child(2) ul li{
    list-style: none;
    float: left;
    width: 120px;
}
.main .fincal .end>div:first-child{
    height: 450px;
    width: 680px;
    border-bottom: none;
}
.main .end .left{
    float: left;
}
.main .end>div:nth-child(2){
    width: 300px;
    height: 450px;
    /* background-color: #9999b3; */
    float: right;
    /* margin-top: 10px; */
}
.main .end .right div{
    font-size: 16px;
    margin-left: 10px;
    line-height: 30px;
    color: #0d1368;
    margin-top: 20px;
}
.main .end .right .details{
    width: 75px;
    height: 30px;
    background-color: #ff6200;
    color: white;
    text-align: center;
    font-size: 18px;
    margin-top: 20px;
}
.main .end .right>div:first-child{
    position: relative;
}
.main .end .right .img{
    float: right;
    position: absolute;
    right: 5px;
    top: 65px;
}
.main .end .right>div:nth-child(2){
    position: relative;
}
.main .end .right .img1{
    float: right;
    position: absolute;
    right: 5px;
    top: 60px;
}
.main .end{
    border-top: 0.5px solid #9999b3;
}
.footer {
    height: 40px;
    background-color: #474747;
    line-height: 40px;
    color: white;
}
.footer .container>div:nth-child(1) li {
    list-style: none;
    float: left;
    margin-left: 10px;
    float: left;
}
.footer .container>div:nth-child(2){
    float: right;
}

效果展示

 

 

 

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

stay calm~

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值