web前端“萌新”的更新 7.6

接前面一篇的后续内容:

/* 设置顶部导航 */
#top-bar-warp {
    width: 100%;
    height: 40px;
    background-color: #333333;

}

.top-bar>.top-bar-left,
.top-bar-left>li,
.top-bar-right>li {
    float: left;
}

.top-bar {
    line-height: 40px;
    font-size: 12px;
}

.top-bar>.top-bar-right {
    float: right;
}

.top-bar .line {
    color: #424242;
    margin: 0 4px;
}

.top-bar li:hover a {
    color: white;
}

/* 设置二维码 */
.app-a {
    position: relative;
    display: block;

}

.app-a:hover>.app-wrap {
    display: block;

}

.app-wrap {
    display: none;
    width: 124px;
    height: 148px;
    background-color: white;
    position: absolute;
    left: -38px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .5);
    z-index: 999;
}

.QRcode {
    position: absolute;
    width: 90px;
    left: 0;
    right: 0;
    margin: 10px auto;

}

.QRcode img {
    width: 90px;
}

.QRcode>p {
    color: black;
    font-size: 14px;
    line-height: 1.5;
}

.app-wrap::before {
    content: '';
    width: 0;
    border: 8px solid white;
    border-color: transparent transparent white transparent;
    border-top: none;
    /* 定位小箭头的位置 */
    position: absolute;
    top: -8px;
    left: 0px;
    right: 0px;
    margin: 0 auto;
}

/* 设置快速导航区 */
#fast-nav-wrap {
    width: 100%;
    height: 100px;
    line-height: 100px;
    position: relative;
}

.fast-nav>li {
    float: left;
}

.nav-left img {
    width: 56px;
    vertical-align: middle;
}

/* 快速导航区中间的内容 */
.nav-center {
    margin-left: 30px;
}

.allshop {
    visibility: hidden;
}

.nav-center>div {
    float: left;
    padding: 0 10px;
}

.nav-center>div>a {
    color: black;
}

.nav-center>div:hover>a {
    color: #ec732e;
}

.popups {
    display: none;
    width: 100%;
    height: 200px;
    position: absolute;
    top: 100px;
    left: 0px;
    box-shadow: 0 2px 3px rgba(0, 0, 0, .5);
    border-top: 1px solid #fdfcfc;
}

.nav-center>div:hover~.popups {
    /* display: block; */
}

/* 快速导航区右侧 */
.fast-nav>.nav-right {
    float: right;
}

.nav-right {
    width: 295px;
    height: 50px;
    background-color: red;
    margin-top: 25px;
}

.nav-right input {
    border: none;
    height: 48px;
    border: 1px solid #e0e0e0;
    width: 240px;
    float: left;
}

.nav-right button {
    border: none;
    background-color: white;
    border: 1px solid #e0e0e0;
    border-left: none;
    width: 49px;
    height: 52px;
    float: left;
}

.nav-right button:hover,
.nav-right button:hover i {
    background-color: #ed732e;
    color: white;
}

.nav-right button i {
    font-size: 18px;
}

.nav-right input:focus {
    border: 1px solid #ed732e;
}

.nav-right input:focus+button {
    border: 1px solid #ed732e;
    border-left: none;

}

/* 设置左侧导航 */
.left-nav-warp {
    height: 460px;
    width: 234px;
    background-color: rgba(105,101,101,.6);
    position: absolute;
    z-index: 999;
    /* opacity: .3; */
}

.left-nav {
    padding: 20px 0px;
}

.left-nav>li {
    line-height: 42px;
    height: 42px;
    color: white;
    padding: 0px 20px 0px 30px;
}

.left-nav>li:hover {
    background-color: #ed732e;
}

.left-nav>li>a {
    color: white;
    float: left;

}

.left-nav>li>i {
    float: right;
    line-height: 42px;
}
/* 设置banner */
.swiper {
    width: 1226px;
    height: 460px;
    overflow: hidden;
    position: relative;
}
.swiper{
    --swiper-theme-color: #ff6600;/* 设置Swiper风格 */
    --swiper-navigation-color: #a3a3a5;/* 单独设置按钮颜色 */
    --swiper-navigation-size: 30px;/* 设置按钮大小 */
  }  
.swiper img{
    width: 1226px;
    height: 460px;
}
.swiper .prev{
    position: absolute;
    left: 234px;
}






/* 设置广告区 */
.adv{
    margin-top: 10px;

}
.adv>li:first-child{
  float: left;
}
.adv>.six-adv{
    width: 228px;
    height: 164px;
    padding: 3px;
    background-color: #5f5750;
    margin-right: 12px;
}
.adv>.six-adv>div{
    float: left;
    width: 70px;
    height: 58px;
    padding: 0  3px;
    padding-top: 18px;
    text-align: center;
}
.adv>.six-adv>div img{
    width: 24px;
    height: 24px;
}
/* 设置小竖线  横线*/
.adv>.six-adv>div{
    position: relative;
}
.adv>.six-adv>div::before{
    content: '';
    display: inline-block;
    width: 64px;
    height: 1px;
    background-color: #655e58;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
}
.adv>.six-adv>div::after{
    content: '';
    display: inline-block;
    height: 64px;
    width: 1px;
    background-color: #655e58;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    margin: auto 0;
}
.adv>.img-list img{
    width: 316px;
    height: 170px;
}
.img-center{
    margin: 0 10px;
}

引入css文件的代码内容,至此小米商城全部结束

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值