博客
关于我
新闻列表、侧边栏、footer
阅读量:583 次
发布时间:2019-03-11

本文共 13669 字,大约阅读时间需要 45 分钟。

新闻列表、侧边栏、footer

新闻列表tab栏布局完成

.main{       .wrapper{           .main-content-wrapper{               .list-outer-group{                   background: #fff;                margin-top: 14px;                .list-tab{                       width: 100%;                    height: 66px;                    overflow: hidden;   //比较重要                    border: 1px solid #eeeeee;                    border-left: none;                    border-right: none;                    li{                           float: left;                        padding: 0 10px;                        margin-top: 20px;                        a{                               color: #878787;                        }                        &:first-of-type{                                border-left: 5px solid $themeColor;    //加个竖线                        }                        &.active{                               a{                                   color: #212121;                            }                        }                    }                }                       }        }    }}

新闻列表页布局完成

.list-inner-group{                       @include news_list;                }

加载更多按钮的布局和样式

.load-more-group{                       padding: 20px 0;                    text-align: center;                    .load-more{                           width: 402px;                        height: 40px;                        background: #d2dcea;                        color: #6d85ac;  //字体颜色                        border: none;    // 去除边框                        outline: none;                        cursor: pointer;                    }                }

侧边栏-标题和广告位布局完成

侧边栏-关注第三方平台盒子布局和样式

关注小饭桌

扫码关注小饭桌微信公众平台xfz008

侧边栏-热门推荐完成

footer布局和样式(1)

@import "constants.scss";.footer{       font-size: 14px;    color: #c9c9c9;    padding-top: 20px;    .top-group{           background: #555e67;        height: 100px;        padding-top: 26px;        box-sizing: border-box;        .top-inner-group{               width: $pageWidth;            margin: 0 auto;            //overflow: hidden;            position: relative;            .logo-box{                   width: 168px;                height: 54px;                float: left;                background: url("http://xfz.cn/static/build/images/foot-logo.png");                background-repeat: no-repeat;                background-size: 100%;            }            .detail-group{                   float: left;                margin-left: 84px;                .line1{                       overflow: hidden;                    .links{                           float: left;                        overflow: hidden;                        li{                               float: left;                            padding: 0 10px;                            a{                                   color: #c9c9c9;                            }                            &:first-of-type{                                   padding-left: 0;                            }                            &:last-of-type{                                   border-right: none;                            }                            border-right:1px solid #c9c9c9;                        }                    }                    .about-us{                           float: left;                        margin-left: 40px;                        .title{                               float: left;                        }                        .social-group{                               float: left;                            overflow: hidden;                            li{                                   float: left;                                color: #fff;                                .text{                                       margin-left: 24px;                                }                            }                            .weixin{                                   background: url("https://www.xfz.cn/static/build/images/wx-icon.png");                                background-repeat: no-repeat;                                background-size: 30%;                                cursor: pointer;                                &:hover .wx-qrcode{                                       display: block;                                }                                .wx-qrcode{                                       width: 204px;                                    height: 204px;                                    background: url("https://www.xfz.cn/static/build/images/wxQr.jpg");                                    background-size: 100%;                                    position: absolute;                                    right: 360px;                                    top: -220px;                                    display: none;                                }                            }                            .weibo{                                   margin-left: 20px;                                background: url("https://www.xfz.cn/static/build/images/xl-icon.png");                                background-repeat: no-repeat;                                background-size: 18%;                                a{                                       color: #fff;                                }                            }                        }                    }                }                .line2{                       overflow: hidden;                    margin-top: 20px;                    .address{                           float: left;                    }                    .contact{                           float: left;                        margin-left: 40px;                    }                }            }        }    }    .bottom-group{           background: #383e44;        height: 60px;        text-align: center;        line-height: 60px;    }}

footer布局和样式(2)

@import "constants.scss";.footer{       font-size: 14px;    color: #c9c9c9;    padding-top: 20px;    .top-group{           background: #555e67;        height: 100px;        padding-top: 26px;        box-sizing: border-box;        .top-inner-group{               width: $pageWidth;            margin: 0 auto;            //overflow: hidden;            position: relative;            .logo-box{                   width: 168px;                height: 54px;                float: left;                background: url("http://xfz.cn/static/build/images/foot-logo.png");                background-repeat: no-repeat;                background-size: 100%;            }            .detail-group{                   float: left;                margin-left: 84px;                .line1{                       overflow: hidden;                    .links{                           float: left;                        overflow: hidden;                        li{                               float: left;                            padding: 0 10px;                            a{                                   color: #c9c9c9;                            }                            &:first-of-type{                                   padding-left: 0;                            }                            &:last-of-type{                                   border-right: none;                            }                            border-right:1px solid #c9c9c9;                        }                    }                    .about-us{                           float: left;                        margin-left: 40px;                        .title{                               float: left;                        }                        .social-group{                               float: left;                            overflow: hidden;                            li{                                   float: left;                                color: #fff;                                .text{                                       margin-left: 24px;                                }                            }                            .weixin{                                   background: url("https://www.xfz.cn/static/build/images/wx-icon.png");                                background-repeat: no-repeat;                                background-size: 30%;                                cursor: pointer;                                &:hover .wx-qrcode{                                       display: block;                                }                                .wx-qrcode{                                       width: 204px;                                    height: 204px;                                    background: url("https://www.xfz.cn/static/build/images/wxQr.jpg");                                    background-size: 100%;                                    position: absolute;                                    right: 360px;                                    top: -220px;                                    display: none;                                }                            }                            .weibo{                                   margin-left: 20px;                                background: url("https://www.xfz.cn/static/build/images/xl-icon.png");                                background-repeat: no-repeat;                                background-size: 18%;                                a{                                       color: #fff;                                }                            }                        }                    }                }                .line2{                       overflow: hidden;                    margin-top: 20px;                    .address{                           float: left;                    }                    .contact{                           float: left;                        margin-left: 40px;                    }                }            }        }    }    .bottom-group{           background: #383e44;        height: 60px;        text-align: center;        line-height: 60px;    }}

转载地址:http://chbtz.baihongyu.com/

你可能感兴趣的文章
MyPython
查看>>
MTD技术介绍
查看>>
MySQL
查看>>
MySQL
查看>>
mysql
查看>>
MTK Android 如何获取系统权限
查看>>
MySQL - 4种基本索引、聚簇索引和非聚索引、索引失效情况、SQL 优化
查看>>
MySQL - ERROR 1406
查看>>
mysql - 视图
查看>>
MySQL - 解读MySQL事务与锁机制
查看>>
MTTR、MTBF、MTTF的大白话理解
查看>>
mt_rand
查看>>
mysql -存储过程
查看>>
mysql /*! 50100 ... */ 条件编译
查看>>
mudbox卸载/完美解决安装失败/如何彻底卸载清除干净mudbox各种残留注册表和文件的方法...
查看>>
mysql 1264_关于mysql 出现 1264 Out of range value for column 错误的解决办法
查看>>
mysql 1593_Linux高可用(HA)之MySQL主从复制中出现1593错误码的低级错误
查看>>
mysql 5.6 修改端口_mysql5.6.24怎么修改端口号
查看>>
MySQL 8.0 恢复孤立文件每表ibd文件
查看>>
MySQL 8.0开始Group by不再排序
查看>>