django学习入门系列之第三点《案例 小米商城中app图标代码》

文章目录


/*使外边距等于0,即让边框与界面贴合*/
body{
   
   
        margin: 0;
}

/*使图片都完全展开并防止超出限制*/
img{
   
   
        height: 100%;
        width: 100%;
}

/*头标部分*/
/*控制父级边框*/
.header{
   
   
        background: #333;
      }

/*控制子级边框*/
.container{
   
   
        width: 1226px;
        margin: 0 auto;
}

/*控制子级边框下的左边菜单栏*/
.header .menu{
   
   
        float: left;
      }

/*控制子级边框下的右边菜单栏*/
.header .account{
   
   
        float: right;
        color: #b0b0b0;
}

/*控制子级边框下的菜单栏中的span标签*/
.header a{
   
   
        color: #b0b0b0;
        line-height: 40px;
        display: inline-block;
        font-size: 12px;
        margin-right: 12px;
        text-decoration: none;
}

.header a:hover{
   
   
        color: white;
}

/*控制子级边框下的菜单栏中改变光标颜色*/
.header span:hover{
   
   
        color: white;

}

.header .container .menu .place{
   
   
        position: relative;
}

.header .container .menu .size{
   
   
        position: absolute;
        height: 100px;
        width: 100px;
        top: 40px;
        display: none;
}

.header .container .menu .place:hover .size{
   
   
        display: block;
}


/*二级菜单部分*/
/*父级大框*/
.sub-header{
   
   
        height: 100px;
}

/*logo框*/
.sub-header .logo{
   
   
        width: 234px;
        height: 100px;
        float: left;
}

/*logo图片的大小设置*/
.sub-header .logo a img{
   
   
        height: 56px;
        width: 56px;
        display: inline-block;
        margin-top: 22px;
}

/*二级菜单中的小菜单边框*/
.sub-header .menu-list {
   
   
        float: left;
        line-height: 100px;
        font-size: 16px;

}

/*二级菜单中的小菜单中文字与超链接*/
.sub-header .menu-list a{
   
   
        display: inline-block;
        padding: 0 8px;
        font-family: Helvetica,sans-serif;
        color: #333;

        /*文字不想要下划线*/
        text-decoration: none;
}
/*二级菜单中的小菜单中移动光标改变颜色*/
.sub-header .menu-list a:hover{
   
   
        color: #ff6700;
}

.sub-header .search{
   
   
        float: right;
}


/*商品菜单部分*/

/*商品主图片的长宽设置*/
.slider .sd-img{
   
   
        display: block;
        width: 1226px;
        height: 460px;
        float: left;
}

/*下面第一张图片中的框架结构设置*/
.news .channel{
   
   
        margin-top: 14px;
        width: 228px;
        height: 164px;
        float: left;
        background: #5f5750;
        padding: 3px;
}
/*下面第一张图片中的小图标的框架与字体结构设置*/
.news .container .channel .item{
   
   
        width: 76px;
        height: 82px;
        float: left;
        text-align: center;
}


/*下面第一张图片中的小图标的超链接文字的颜色与字体设置*/
.news .channel .item a{
   
   
        display: inline-block;
        padding-top: 18px;
        text-decoration: none;
        color: #fff;
        opacity: 0.7;
        font-size: 12px;
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值