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

网站权重数据包站点查询

网站权重数据包,站点查询,单位网站建设收费标准,怎么样制作一个公司网站1、flex.css样式的使用场景 在移动端开发中,并不是所有的浏览器,webview,微信等各种版本都支持标准的flex,但是基本上都会支持-webkit-box,所以flex.css的主要作用是保证每一个属性都能支持标准flex或旧版本的-webkit-…

1、flex.css样式的使用场景

 在移动端开发中,并不是所有的浏览器,webview,微信等各种版本都支持标准的flex,但是基本上都会支持-webkit-box,所以flex.css的主要作用是保证每一个属性都能支持标准flex或旧版本的-webkit-box。由于flex.css采用了autoprefixer编译,所以能够保证在浏览器不支持标准flex布局的情况下,回滚到旧版本的-webkit-box,保证移动设备中能呈现出一样的布局效果。于是,一款移动端快速布局的神器诞生了...Flex布局的出现,正是为了解决浮动和定位这些局限性,它允许我们在一个容器内对子元素进行灵活的排列、对齐和空间分配。

1.2 主轴(Main Axis)和交叉轴(Cross Axis)

主轴(main axis)

沿其布置子容器的从 main-start 开始到 main-end ,请注意,它不一定是水平的;这取决于 flex-direction 属性(见下文), main size 是它可放置的宽度,是容器的宽或高,取决于 flex-direction。

交叉轴(cross axis)

垂直于主轴的轴称为交叉轴,它的方向取决于主轴方向,是主轴写满一行后另起一行的方向,从 cross-start 到 cross-end , cross size 是它可放置的宽度,是容器的宽或高,取决于 flex-direction。

2. 安装

npm install --save flex.css

3.设置主轴方向

<template><div><h2>从上到下</h2><div class="box" flex="dir:top"><div class="item" style="background: red">1</div><div class="item" style="background: blue">2</div><div class="item" style="background: #000">3</div></div><h2>从右到左</h2><div class="box" flex="dir:right"><div class="item" style="background: red">1</div><div class="item" style="background: blue">2</div><div class="item" style="background: #000">3</div></div><h2>从下到上</h2><div class="box" flex="dir:bottom"><div class="item" style="background: red">1</div><div class="item" style="background: blue">2</div><div class="item" style="background: #000">3</div></div><h2>从左到右(默认)</h2><div class="box" flex="dir:left"><div class="item" style="background: red">1</div><div class="item" style="background: blue">2</div><div class="item" style="background: #000">3</div></div></div>
</template>
<style lang="scss" scoped>
.box {width: 100%;height: 150px;border: 1px solid #ddd;
}
.item {width: 30px;height: 30px;line-height: 30px;color: #fff;text-align: center;
}
</style>

4、主轴对齐方式

<template><div><h2>从右到左</h2><div class="box" flex="main:right"><div class="item" style="background: red">1</div><div class="item" style="background: blue">2</div><div class="item" style="background: #000">3</div></div><h2>从左到右(默认)</h2><div class="box" flex="main:left"><div class="item" style="background: red">1</div><div class="item" style="background: blue">2</div><div class="item" style="background: #000">3</div></div><h2>两端对齐</h2><div class="box" flex="main:justify"><div class="item" style="background: red">1</div><div class="item" style="background: blue">2</div><div class="item" style="background: #000">3</div></div><h2>居中对齐</h2><div class="box" flex="main:center"><div class="item" style="background: red">1</div><div class="item" style="background: blue">2</div><div class="item" style="background: #000">3</div></div></div>
</template>
<style lang="scss" scoped>
.box {width: 100%;height: 150px;border: 1px solid #ddd;
}
.item {width: 30px;height: 30px;line-height: 30px;color: #fff;text-align: center;
}
</style>
<script setup></script>

5、交叉轴对齐方式

<template><div><h2>从上到下(默认)</h2><div class="box" flex="cross:top"><div class="item" style="background: red;">1</div><div class="item" style="background: blue;">2</div><div class="item" style="background: #000;">3</div></div><h2>从下到上</h2><div class="box" flex="cross:bottom"><div class="item" style="background: red;">1</div><div class="item" style="background: blue;">2</div><div class="item" style="background: #000;">3</div></div><h2>基线对齐</h2><div class="box" flex="cross:baseline"><div class="item" style="background: red;">1</div><div class="item" style="background: blue;">2</div><div class="item" style="background: #000;">3</div></div><h2>居中对齐</h2><div class="box" flex="cross:center"><div class="item" style="background: red;">1</div><div class="item" style="background: blue;">2</div><div class="item" style="background: #000;">3</div></div><h2>高度并排铺满</h2><div class="box" flex="cross:stretch"><div class="item" style="background: red;">1</div><div class="item" style="background: blue;">2</div><div class="item" style="background: #000;">3</div></div></div>
</template>
<style lang="scss" scoped>
.box {width: 100%;height: 150px;border: 1px solid #ddd;
}
.item {width: 30px;height: 30px;line-height: 30px;color: #fff;text-align: center;
}
</style>
<script setup>
</script>

6、子元素设置

<template><div><h2>子元素平分空间</h2><div class="box" flex="box:mean"><div class="item" style="background: red;">1</div><div class="item" style="background: blue;">2</div><div class="item" style="background: #000;">3</div></div><h2>第一个子元素不要多余空间,其他子元素平分多余空间</h2><div class="box" flex="box:first"><div class="item" style="background: red;">1</div><div class="item" style="background: blue;">2</div><div class="item" style="background: #000;">3</div></div><h2>最后一个子元素不要多余空间,其他子元素平分多余空间</h2><div class="box" flex="box:last"><div class="item" style="background: red;">1</div><div class="item" style="background: blue;">2</div><div class="item" style="background: #000;">3</div></div><h2>两端第一个元素不要多余空间,其他子元素平分多余空间</h2><div class="box" flex="box:justify"><div class="item" style="background: red;">1</div><div class="item" style="background: blue;">2</div><div class="item" style="background: #000;">3</div></div></div>
</template>

7、flex-box元素剩余空间比例分配

<template><div><h2>flex-box实现两端不需要多余空间,中间占满剩余空间</h2><div class="box" flex><div class="item" flex-box="0" style="background: red">1</div><div class="item" flex-box="1" style="background: blue">2</div><div class="item" flex-box="0" style="background: #000">3</div></div></div>
</template><style lang="scss" scoped>
.box {width: 100%;height: 100px;border: 1px solid #ddd;
}
.item {width: 30px;height: 30px;line-height: 30px;color: #fff;text-align: center;
}
</style><script setup></script>

http://www.ds6.com.cn/news/115412.html

相关文章:

  • 网站建设思维导图的要求成都新站软件快速排名
  • 国内做免费视频网站网络营销的四大基础理论
  • 重庆微网站开发公司宁波seo网络推广多少钱
  • 东莞网站制作培训多少钱seo研究中心倒闭
  • 深圳网站建设工作seo优化排名推广
  • 免费看片网站seo扣费系统源码
  • 简历上作品展示网站链接怎么做网站生成器
  • 广告设计专业专升本考什么seo优化人员
  • 网站做支付按流量付费软文是什么样子的
  • 企业网站推广方案上海培训学校怎么招生
  • 北京网站建设培训机构宁波seo基础入门
  • 专注徐州网站开发无锡seo网站管理
  • 不会代码怎么做网站国内做seo最好公司
  • 营销型企业网站热门关键词排名查询
  • 一个公司做两个网站可以吗经典软文案例100例简短
  • 哪个网站可以做puzzle网络推广外包联系方式
  • 如何建开发手机网站首页建设企业网站多少钱
  • 网站字体字号郑州做网站公司有哪些
  • 营销型网站建设哪里有优化优化
  • 德惠网站建设免费网页制作成品
  • 可以做雷达图的网站排名点击软件怎样
  • 青岛高端网站建设公司郑州企业网络推广外包
  • 网站模板种类合肥网络优化公司有几家
  • 最常见的企业建站程序有什么都能搜的浏览器
  • 凡科互动小游戏windows优化大师最新版本
  • b2c是什么意思通俗讲seo交流论坛
  • 做网站必须要有服务器吗软文推广
  • javaapp免费看百度seo排名教程
  • 网络公司排名100名seo刷词
  • 房产经纪人如何做网站吸客网络视频营销平台