安居客简单页面

原图:

index.html 

<!DOCTYPE html>
<html>

<head>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <title>
        安居客
    </title>
    <link type="text/css" href="index.css" rel="stylesheet" />
   

</head>

<body>
    <div class="content">
        <div class="tit">
            <a href="#">合肥特色专区|服务大全>></a>
        </div>
        <ul class="dh">
            <li>
                <a class="bg1" href="#">家政</a>
            </li>
            <li>
                <a class="bg2" href="#">婚庆</a>

            </li>
            <li>
                <a class="bg3" href="#">装修</a>

            </li>
            <li>
                <a class="bg4" href="#">汽车</a>
            </li>
            <li>
                <a class="bg5" href="#">休闲</a>

            </li>
            <li>
                <a class="bg6" href="#">商务</a>

            </li>
            <li>
                <a class="bg7" href="#">旅游</a>

            </li>
            <li>
                <a class="bg8" href="#">医疗</a>

            </li>
            <li>
                <a class="bg9" href="#">餐饮</a>

            </li>
            <li>
                <a class="bg10" href="#">教育</a>

            </li>
            <li>
                <a class="bg11" href="#">加盟</a>

            </li>
        </ul>

    </div>
</body>

</html>

 index.css

a{
    text-decoration: none;
}
li{
    list-style: none;
}

.content{
    width:1180px;
    height:120px;
    border:1px solid #dfdfe0;
}

.tit{
    font-family:微软雅黑;
    color: ;
    border-left:#f78015 solid 7px;
    padding-left:10px;
    font-size:14px;
    font-weight:700;
    margin-left:30px;
    margin-top:20px; 
}
.tit a{
    color: #0041D9;
}

.tit a:hover{
    color:red;
    text-decoration:underline;
}

.bg1{
    background:url(bg.png) 0 0 no-repeat;
}
.bg2{
    background:url(bg.png) -80px 0 no-repeat;
}
.bg3{
    background:url(bg.png) -159px 0 no-repeat;
}
.bg4{
    background:url(bg.png) -242px 0 no-repeat;
}
.bg5{
    background:url(bg.png) -321px 0 no-repeat;
}
.bg6{
    background:url(bg.png) -405px 0 no-repeat;
}
.bg7{
    background:url(bg.png) -487px 0 no-repeat;
}
.bg8{
    background:url(bg.png) -568px 0 no-repeat;
}
.bg9{
    background:url(bg.png) -649px 0 no-repeat;
}
.bg10{
    background:url(bg.png) -730px 0 no-repeat;
}
.bg11{
    background:url(bg.png) -813px 0 no-repeat;
}
.dh a{
    width:32px;
    padding-top:37px;
    height:14px;
    display:inline-block;
    margin-bottom:10px;
    text-align:center;
    font-size: 13px;
}

.dh{
    margin-top:10px;
    /* border: 1px solid red; */
}
.dh li{ 
    width: 90px;
    display: inline-block;
    margin-bottom: 10px;
    /* border: 1px solid green;    */
}
.dh li a{
    color: #0041D9;
}
.dh a:hover{
    color:#f78015;
    text-decoration: none;
}


bg.png图片

效果图:

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值