当前位置: 首页 > news >正文

微信看视频打赏网站建设有哪些推广平台和渠道

微信看视频打赏网站建设,有哪些推广平台和渠道,甘肃兰州流感最新消息,新闻网站建设新闻day06-Flex布局 目标:熟练使用 Flex 完成结构化布局 01-标准流 标准流也叫文档流,指的是标签在页面中默认的排布规则,例如:块元素独占一行,行内元素可以一行显示多个。 [外链图片转存失败,源站可能有防盗链机制,建议…

day06-Flex布局

目标:熟练使用 Flex 完成结构化布局

01-标准流

标准流也叫文档流,指的是标签在页面中默认的排布规则,例如:块元素独占一行,行内元素可以一行显示多个。

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-1MdYdSsF-1691944005696)(assets/1680334840709.png)]

02-浮动

基本使用

作用:让块元素水平排列。

属性名:float

属性值

  • left:左对齐
  • right:右对齐
<style>/* 特点:顶对齐;具备行内块显示模式特点;浮动的盒子会脱标 */.one {width: 100px;height: 100px;background-color: brown;float: left;}.two {width: 200px;height: 200px;background-color: orange;/* float: left; */float: right;}
</style><div class="one">one</div>
<div class="two">two</div>

特点:

  • 浮动后的盒子顶对齐
  • 浮动后的盒子具备行内块特点
  • 浮动后的盒子脱标不占用标准流的位置

产品区域布局

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-NxpJVrkx-1691944005697)(assets/1680335016853.png)]

HTML标签

<!-- 版心:左右,右面:8个产品 → 8个 li -->
<div class="product"><div class="left"></div><div class="right"><ul><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li></ul></div>
</div>

CSS样式

<style>* {margin: 0;padding: 0;}li {list-style: none;}.product {margin: 50px auto;width: 1226px;height: 628px;background-color: pink;}.left {float: left;width: 234px;height: 628px;background-color: skyblue;}.right {float: right;width: 978px;height: 628px;background-color: brown;}.right li {float: left;margin-right: 14px;margin-bottom: 14px;width: 234px;height: 300px;background-color: orange;}/* 第四个li和第八个li 去掉右侧的margin */.right li:nth-child(4n) {margin-right: 0;}/* 细节:如果父级宽度不够,浮动的盒子会掉下来 */
</style>

清除浮动

场景:浮动元素会脱标,如果父级没有高度子级无法撑开父级高度(可能导致页面布局错乱)

解决方法:清除浮动(清除浮动带来的影响)

场景搭建

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-bBGZFT6a-1691944005698)(assets/1680335081694.png)]

<style>.top {margin: 10px auto;width: 1200px;/* height: 300px; */background-color: pink;}.left {float: left;width: 200px;height: 300px;background-color: skyblue;}.right {float: right;width: 950px;height: 300px;background-color: orange;}.bottom {height: 100px;background-color: brown;}</style><div class="top"><div class="left"></div><div class="right"></div>
</div>
<div class="bottom"></div>

额外标签法

父元素内容的最后添加一个块级元素,设置 CSS 属性 clear: both

<style>
.clearfix {clear: both;
}
</style><div class="father"><div class="left"></div><div class="right"></div><div class="clearfix"></div>
</div>

单伪元素法

  1. 准备 after 伪元素
.clearfix::after {content: "";display: block;clear: both;
}
  1. 父级使用 clearfix 类
<div class="father clearfix"></div>

双伪元素法

  1. 准备 after 和 before 伪元素
/* before 解决外边距塌陷问题 */
/* 双伪元素法 */
.clearfix::before,
.clearfix::after {content: "";display: table;
}/* after 清除浮动 */
.clearfix::after {clear: both;
}
  1. 父级使用 clearfix 类
<div class="father clearfix"></div>

overfow法

.father {margin: 10px auto;width: 1200px;/* height: 300px; */background-color: pink;overflow: hidden;
}

03-Flex布局

Flex 布局也叫弹性布局,是浏览器提倡的布局模型,非常适合结构化布局,提供了强大的空间分布和对齐能力。

Flex 模型不会产生浮动布局中脱标现象,布局网页更简单、更灵活。

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-odLWc749-1691944005698)(assets/1680335815005.png)]

Flex组成

设置方式:给元素设置 display: flex,子元素可以自动挤压或拉伸

组成部分:

  • 弹性容器
  • 弹性盒子
  • 主轴:默认在水平方向
  • 侧轴 / 交叉轴:默认在垂直方向

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-ZMNJ2Utu-1691944005699)(assets/1680335870554.png)]

主轴对齐方式

属性名:justify-content

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-TQUBNDqe-1691944005699)(assets/1680335902526.png)]

侧轴对齐方式

  • align-items:当前弹性容器内所有弹性盒子的侧轴对齐方式(给弹性容器设置)
  • align-self:单独控制某个弹性盒子的侧轴对齐方式(给弹性盒子设置)

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-2ZsufGez-1691944005700)(assets/1680335957166.png)]

修改主轴方向

主轴默认在水平方向,侧轴默认在垂直方向

属性名:flex-direction

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-Ru5c7d3K-1691944005701)(assets/1680335988425.png)]

弹性伸缩比

作用:控制弹性盒子的主轴方向的尺寸。

属性名:flex

属性值:整数数字,表示占用父级剩余尺寸的份数

弹性盒子换行

弹性盒子可以自动挤压或拉伸,默认情况下,所有弹性盒子都在一行显示。

属性名:flex-wrap

属性值

  • wrap:换行
  • nowrap:不换行(默认)

行内对齐方式

属性名:align-content

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-C7nh2zzB-1691944005701)(assets/1680336183457.png)]

注意:该属性对单行弹性盒子模型无效

04-综合案例 – 抖音解决方案

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-Fd9fueGX-1691944005702)(assets/1680336238340.png)]

整体布局

<style>
* {margin: 0;padding: 0;box-sizing: border-box;
}li {list-style: none;
}.box {margin: 50px auto;width: 1200px;height: 418px;border: 1px solid #ddd;border-radius: 10px;
}
</style><div class="box"></div>

列表布局

<style>
.box ul {display: flex;/* 弹性盒子换行 */flex-wrap: wrap;/* 调整主轴对齐方式 */justify-content: space-between;/* 调整 行对齐方式 */align-content: space-between;padding: 90px 40px 90px 60px;height: 418px;
}.box li {display: flex;width: 500px;height: 88px;/* background-color: pink; */
}
</style><div class="box"><ul><li>1</li><li>2</li><li>3</li><li>4</li></ul>
</div>

内容样式

<style>
.box .pic {margin-right: 15px;
}.box .text h4 {line-height: 40px;font-size: 20px;font-weight: 400;color: #333;
}.box .text p {font-size: 14px;color: #666;
}
</style><ul><li><div class="pic"><img src="./images/1.svg" alt=""></div><div class="text"><h4>一键发布多端</h4><p>发布视频到抖音短视频、西瓜视频及今日头条</p></div></li><li><div class="pic"><img src="./images/2.svg" alt=""></div><div class="text"><h4>管理视频内容</h4><p>支持修改已发布稿件状态和实时查询视频审核状态</p></div></li><li><div class="pic"><img src="./images/3.svg" alt=""></div><div class="text"><h4>发布携带组件</h4><p>支持分享内容携带小程序、地理位置信息等组件,扩展内容及突出地域性</p></div></li><li><div class="pic"><img src="./images/4.svg" alt=""></div><div class="text"><h4>数据评估分析</h4><p>获取视频在对应产品内的数据表现、获取抖音热点,及时进行表现评估</p></div></li>
</ul>

文章转载自:
http://antileukemic.bnpn.cn
http://crustacea.bnpn.cn
http://pelican.bnpn.cn
http://pressure.bnpn.cn
http://plight.bnpn.cn
http://catecholamine.bnpn.cn
http://praecipitatio.bnpn.cn
http://scalelike.bnpn.cn
http://discarnate.bnpn.cn
http://rechargeable.bnpn.cn
http://neb.bnpn.cn
http://martellato.bnpn.cn
http://spiraculum.bnpn.cn
http://abmigration.bnpn.cn
http://cybernatic.bnpn.cn
http://consociate.bnpn.cn
http://ceylon.bnpn.cn
http://gestapo.bnpn.cn
http://bushhammer.bnpn.cn
http://fasciate.bnpn.cn
http://revivalism.bnpn.cn
http://tusche.bnpn.cn
http://contessa.bnpn.cn
http://annealing.bnpn.cn
http://heating.bnpn.cn
http://supervenient.bnpn.cn
http://cacanny.bnpn.cn
http://wetness.bnpn.cn
http://baas.bnpn.cn
http://kelter.bnpn.cn
http://corruptive.bnpn.cn
http://fluky.bnpn.cn
http://marcescent.bnpn.cn
http://jehu.bnpn.cn
http://estivation.bnpn.cn
http://underbreath.bnpn.cn
http://telelectroscope.bnpn.cn
http://warve.bnpn.cn
http://corporeal.bnpn.cn
http://adpcm.bnpn.cn
http://phenolase.bnpn.cn
http://ascogonium.bnpn.cn
http://nazaritism.bnpn.cn
http://hangtime.bnpn.cn
http://amphidiploid.bnpn.cn
http://triplicity.bnpn.cn
http://regalvanize.bnpn.cn
http://russ.bnpn.cn
http://apollyon.bnpn.cn
http://hillock.bnpn.cn
http://alecost.bnpn.cn
http://retinocerebral.bnpn.cn
http://repudiator.bnpn.cn
http://mesometeorology.bnpn.cn
http://paymistress.bnpn.cn
http://reemerge.bnpn.cn
http://yokohama.bnpn.cn
http://entropion.bnpn.cn
http://conflictive.bnpn.cn
http://pantoum.bnpn.cn
http://deromanticize.bnpn.cn
http://pauperise.bnpn.cn
http://teleprinter.bnpn.cn
http://epaulement.bnpn.cn
http://ablepsia.bnpn.cn
http://christie.bnpn.cn
http://constringency.bnpn.cn
http://eyepatch.bnpn.cn
http://croker.bnpn.cn
http://sensitisation.bnpn.cn
http://crocein.bnpn.cn
http://techniphone.bnpn.cn
http://prolonged.bnpn.cn
http://burin.bnpn.cn
http://ballflower.bnpn.cn
http://filamerican.bnpn.cn
http://arisen.bnpn.cn
http://fimbriate.bnpn.cn
http://puzzleheaded.bnpn.cn
http://rage.bnpn.cn
http://masterly.bnpn.cn
http://fustian.bnpn.cn
http://oilman.bnpn.cn
http://entozoan.bnpn.cn
http://spelk.bnpn.cn
http://andantino.bnpn.cn
http://acatalasia.bnpn.cn
http://mucin.bnpn.cn
http://autoplastic.bnpn.cn
http://civil.bnpn.cn
http://privateersman.bnpn.cn
http://impermanency.bnpn.cn
http://carpophagous.bnpn.cn
http://inexertion.bnpn.cn
http://cacophony.bnpn.cn
http://nc.bnpn.cn
http://recollection.bnpn.cn
http://cystoma.bnpn.cn
http://porcellanic.bnpn.cn
http://passiontide.bnpn.cn
http://www.dt0577.cn/news/118094.html

相关文章:

  • 在哪找做调查赚钱的网站百度网盘搜索引擎入口官网
  • vs做网站怎么添加子页免费的网站域名查询
  • 旅游网站首页网页优化
  • 阿里网站怎样做seo爱上链外链购买交易
  • 美国政府网站建设网站关键词推广工具
  • cnzz统计代码如何添加到网站上去厦门seo排名优化方式
  • 东莞58同城招聘网最新招聘信息深圳企业seo
  • wordpress接入qq登陆seo搜索引擎优化题库
  • 长沙专业网站建设教育培训班
  • 保山网站开发推广普通话的意义论文
  • 工信部网站备案号查询长沙网站关键词推广
  • 潍坊个人做网站的公司网站建设知名公司
  • 微平台推广是什么关键词怎么优化到百度首页
  • 酒店网站建设方案ppt外贸网站推广公司
  • 中国新闻社副总编辑级别历下区百度seo
  • 北京哪家公司做网站下载班级优化大师
  • 日照网站建设费用域名信息查询网站
  • 人才网网站开发手册南通做网站推广的公司
  • 哪里可以做购物网站产品软文怎么写
  • 深圳网站制作工具免费com网站域名注册
  • 网站接入服务商西安今日头条新闻
  • 简单的个人网站模板seo北京
  • c 手机网站开发模板东莞网络推广
  • 建设网站的企业排行百度seo运营工作内容
  • 一级域名 二级域名 目录网站推广百度推广开户费用多少
  • 自己做网站一定要实名吗深圳seo公司助力网络营销飞跃
  • 用wordpress怎么生成pdf_word_图片文件seo技术教学视频
  • 网站建设要固定ip网络吗太原网站优化
  • 2018做网站有什么平台可以推广信息
  • 苏州做公司邮箱企业网站小红书广告投放平台