博客
关于我
新闻列表、侧边栏、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/

你可能感兴趣的文章
mysql5.7 安装版 表不能输入汉字解决方案
查看>>
MySQL5.7.18主从复制搭建(一主一从)
查看>>
MySQL5.7.19-win64安装启动
查看>>
mysql5.7.19安装图解_mysql5.7.19 winx64解压缩版安装配置教程
查看>>
MySQL5.7.37windows解压版的安装使用
查看>>
mysql5.7免费下载地址
查看>>
mysql5.7命令总结
查看>>
mysql5.7安装
查看>>
mysql5.7性能调优my.ini
查看>>
MySQL5.7新增Performance Schema表
查看>>
Mysql5.7深入学习 1.MySQL 5.7 中的新增功能
查看>>
Webpack 之 basic chunk graph
查看>>
Mysql5.7版本单机版my.cnf配置文件
查看>>
mysql5.7的安装和Navicat的安装
查看>>
mysql5.7示例数据库_Linux MySQL5.7多实例数据库配置
查看>>
Mysql8 数据库安装及主从配置 | Spring Cloud 2
查看>>
mysql8 配置文件配置group 问题 sql语句group不能使用报错解决 mysql8.X版本的my.cnf配置文件 my.cnf文件 能够使用的my.cnf配置文件
查看>>
MySQL8.0.29启动报错Different lower_case_table_names settings for server (‘0‘) and data dictionary (‘1‘)
查看>>
MYSQL8.0以上忘记root密码
查看>>
Mysql8.0以上重置初始密码的方法
查看>>