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

templates/news/index.html

       <div class="sidebar-wrapper">
<div class="title-group">
<span class="title">在线课堂</span>
<a class="more" href="#">更多</a>
</div>
<div class="advertise-group">
<img src="https://static-image.xfz.cn/1554346383_8.png" alt="">
</div> </div>

src/css/index.scss

.main{
.wrapper{
.sidebar-wrapper {
float: right;
width: 356px;
height: 500px;
background: #fff; .title-group{
padding: 20px;
overflow: hidden;
.title{
float: left;
font-size: 18px;
color: #212121;
}
.more{
float: right;
font-size: 14px;
color: #5c87d9;
}
} .advertise-group{
img{
width: 100%;
}
}
}
}
}

效果

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

templates/news/index.html

        <div class="platform-group">
<div class="title-group">
<span class="title">关注小饭桌</span>
</div>
<div class="focus-group">
<ul class="left-group">
<li class="zhihu" ><a href="#" target="_blank" >小饭桌创业课堂</a></li>
<li class="weibo" ><a href="#" target="_blank" >小饭桌创业课堂</a></li>
<li class="toutiao" ><a href="#" target="_blank" >小饭桌</a></li>
</ul>
<div class="right-group">
<p class="desc">扫描关注小饭桌微信公众号</p>
</div>
</div> </div>

src/css/index.scss

      .focus-group{
padding: 0 20px;
overflow: hidden;
.left-group{
width: 180px;
float: left;
li{
width: 100%;
height: 50px;
line-height: 50px;
background: url("https://www.xfz.cn/static/build/images/side-icon.png") no-repeat;
background-size: 26%;
margin-bottom: 20px;
overflow: hidden;
a{
float: left;
margin-left: 64px;
color: #878787;
font-size: 14px;
}
}
.zhihu{
background-position: 0 0;
}
.weibo{
background-position: 0 -63px;
}
.toutiao{
background-position: 0 -122px;
}
} .right-group{
float: right;
width: 100px;
background: url("https://www.xfz.cn/static/build/images/xfz-school-wechat-share.png");
background-size: 100%;
background-repeat: no-repeat;
.desc{
margin-top: 100px;
color: #878787;
font-size: 12px;
}
}
}

效果

4.18.侧边栏-热门推荐完成

templates/news/index.html

          <div class="hot-news-group">
<div class="title-group">
<span class="title">热门推荐</span>
</div>
<ul class="hot-list-group">
<li>
<div class="left-group">
<p class="title" ><a href="#">印度人摩托车上的帝国</a></p>
<p class="more">
<span class="category">深度报道</span>
<span class="pub-time">1小时前</span>
</p>
</div>
<div class="right-group">
<a href="#">
<img src="https://static-image.xfz.cn/1561031505_57.jpg-website.news.list" alt="">
</a>
</div>
</li> <li>
<div class="left-group">
<p class="title" ><a href="#">早报:爱奇艺会员规模破1亿</a></p>
<p class="more">
<span class="category">爱奇艺</span>
<span class="pub-time">2小时前</span>
</p>
</div>
<div class="right-group">
<a href="#">
<img src="https://static-image.xfz.cn/1561246883_290.jpg-website.news.list" alt="">
</a>
</div>
</li>
</ul>
</div>

src/css/index.scss

        .hot-news-group{
.hot-list-group{
li{
padding: 0 20px 20px;
overflow: hidden;
border-bottom: 1px solid #eee; .left-group{
float: left;
width: 204px;
height: 72px;
position: relative;
.title{
font-size: 16px;
a{
color: #212121;
&:hover{
color: #5c87d9;
}
}
} .more{
position: absolute;
left:;
right:;
bottom:;
font-size: 12px;
.category{
color: #5c87d9;
float: left;
}
.pub-time{
float: right;
color: #878787;
}
}
} .right-group{
float: right;
width: 102px;
height: 72px;
img{
width: 100%;
height: 100%;
}
}
}
}
}

效果

Django打造大型企业官网(八)的更多相关文章

  1. 超细讲解Django打造大型企业官网

    本文为知了课堂黄勇老师讲的<超细讲解Django打造大型企业官网>的笔记. 第一章 Django预热 1.创建virtualenv虚拟环境 2.URL组成部分详解 3.Django介绍 4 ...

  2. Django打造大型企业官网

    第1章 Django预热 1-为什么需要虚拟环境 2-virtualenv创建虚拟环境 3-virtualenvwrapper使用 4-URL组成部分讲解 5-课程准备工作 6-Django介绍 第2 ...

  3. Django打造大型企业官网(二)

    三.项目环境搭建 3.1.创建项目环境和安装包 创建django项目 mkvirtualenv DjangoProject workon DjangoProject pip install -i ht ...

  4. Django打造大型企业官网(七)

    4.13.新闻列表tab栏布局完成 templates/news/index.html <div class="list-outer-group"> <ul cl ...

  5. Django打造大型企业官网(六)

    4.9.根据轮播图个数修改小圆点数量 src/js/index.js function Banner() { this.bannerWidth = 798; } Banner.prototype.in ...

  6. Django打造大型企业官网(五)

    4.6.切换轮播图的箭头样式以及显示和隐藏 templates/news/index.html <span class="arrow left-arrow">‹< ...

  7. Django打造大型企业官网(四)

    4.3.轮播图布局和样式 templates/news/index.html <div class="news-wrapper"> <div class=&quo ...

  8. Django打造大型企业官网(三)

    四.前端首页 4.1.导航条实现 (1)templates/new/index.html <!DOCTYPE html> <html lang="en"> ...

  9. Django打造大型企业官网(一)

    一.nvm的安装 (1)下载:nvm1.16 (2)安装完成后添加环境变量 C:\Users\Administrator\AppData\Roaming\nvm (3)修改settings.txt,将 ...

随机推荐

  1. ERStudio8.0 破解版 下载

    下面地址亲测有效 https://blog.csdn.net/weixin_37139761/article/details/83856069

  2. 怎样让Oracle的存储过程返回结果集

    Oracle存储过程: CREATE OR REPLACE PROCEDURE getcity ( citycode IN VARCHAR2, ref_cursor OUT sys_refcursor ...

  3. Chrome插件:浏览器后台与页面间通信

    content.js 与 background.js和popup.js 通信和 background.js与popup.js  这些通信都用 chrome.runtime.sendMessage 这个 ...

  4. 20181228 模拟赛 T3 字符串游戏 strGame 博弈论 字符串

    3  字符串游戏(strGame.c/cpp/pas) 3.1  题目描述 pure 和 dirty 决定玩 T 局游戏.对于每一局游戏,有n个字符串,并且每一局游戏由K轮组成.具体规则如下:在每一轮 ...

  5. Go:slice

    一.切片创建方式 func main() { // 创建切片方式1 // 让切片引用一个数组 array := [...]int{1, 2, 3, 4} slice1 := array[1:3] fm ...

  6. oracle dmp文件的导入导出

    一.命令行方式 exp 用户名/密码@库名 file=文件位置.dmp owner=用户名 imp 用户名/密码@库名 file=文件位置.dmp 注意 : 导入过程若有的表已经存在可能会报错,可以全 ...

  7. centos6基础优化

    一.关闭SELinux功能 selinux功能太严苛,还是关闭了吧 法一:修改配置文件,永久生效 [root@web01 ~]# sed -i 's/SELINUX=enforcing/SELINUX ...

  8. 初学数位DP

    所谓数位dp,字面意思就是在数位上进行dp,数位的含义:一个数有个位.十位.百位.千位.等等,数的每一位就是数位. 数位DP一般应用于: 求出给定区间[A,B]内,符合条件P[i]的数 i 的个数. ...

  9. 集训第六周 M题

    Description   During the early stages of the Manhattan Project, the dangers of the new radioctive ma ...

  10. 学习javascript中的事件——事件处理程序

    事件就是用户或浏览器自身执行的某种动作.诸如 click.load 和 mouseover ,都是事件的名字.而响应某个事件的函数就叫做事件处理程序(或事件侦听器).事件处理程序的名字以“on”开头, ...