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

网页设计模板免费网站网页升级无法自动更新

网页设计模板免费网站,网页升级无法自动更新,网站空间是虚拟主机吗,标识设计图片Flex 布局是什么#xff1f; Flex 是 Flexible Box 的缩写#xff0c;意为弹性布局#xff0c;用来为盒状模型提供最大的灵活性。 .box{display: flex;//行内元素也可以使用flex布局//display: inline-flex; }display: flex; 使元素呈现为块级元素#xff0c;…Flex 布局是什么 Flex 是 Flexible Box 的缩写意为弹性布局用来为盒状模型提供最大的灵活性。 .box{display: flex;//行内元素也可以使用flex布局//display: inline-flex; }display: flex; 使元素呈现为块级元素占据整行空间除非使用 width 或 height 等属性指定其大小。所有子元素将按照弹性盒子的规则进行布局。display: inline-flex; 使元素呈现为一个行内元素可以与其他元素在同一行上显示。其子元素也将按照弹性盒子的规则进行布局 。 设为 Flex 布局以后子元素的float、clear和vertical-align属性将失效。 flex属性 父元素属性 flex-direction flex-direction属性决定主轴的方向 默认值为row flex-direction: row | row-reverse | column | column-reverse;flex-wrap flex-wrap决定子元素换行 默认值为nowarp flex-wrap: nowrap | warp | wrap-reverseflex-flow flex-direction和flex-wrap的复合属性 ****row nowrap flex-flow: flex-direction | flex-wrapjustify-content属性定义了项目在主轴上的对齐方式 justify-content: flex-start | flex-end | center | space-between | space-aroundalign-items属性决定了侧轴上的对齐方式 align-items: flex-start | flex-end | center | baseline | stretch; align-content 多行子容器在交叉轴上的对齐方式,首先的前提是它要满足换行 align-content :flex-start | flex-end | center | space-between | space-around | stretchgap 属性决定了主轴子元素之间的间隔 gap: number 子元素属性 order : 自定义排序,设置order可以按照由小到大进行排列 order: integeralign-self 单独设置子容器的交叉轴排列方式 align-self: flex-start | flex-end | center | baseline | stretchflex-basis表示当子容器不伸缩的状态时,也就是没有设置 flex: 数字的弹性情况下的原始尺寸,默认为auto,item本来的大小 flex-basis: length | autoflex-grow 属性定义项目的放大比例默认为0即如果存在剩余空间也不放大。 flex-grow: numberflex-shrink 定义了项目的缩小比例默认为1即如果空间不足该项目将缩小。flex-shrink: number flex: 属性是flex-grow, flex-shrink 和 flex-basis的复合属性 flex: none | [ flex-grow flex-shrink? || flex-basis ] flex: 1 flex:1  flex: 1 1 0%; flex:1在父元素尺寸不足的时候会优先最小化内容尺寸。 flex:auto flex:auto flex: 1 1 auto flex:auto在父元素尺寸不足的时候会优先最大化内容尺寸。 flex: 0 flex:0  flex: 0 1 0%; flex:0 :通常表现为内容最小化宽度,不会充分的分配容器的尺寸。 flex:none flex:none  flex:0 0 auto; flex:none;表示元素的大小由内容决定但是flex-growflex-shrink都是0元素没有弹性通常表现为内容最大化宽度,也许会溢出容器。 所以在日常开发中使用flex:1和 flex:auto比较多 快速练习和使用 CSS3 Flexbox 在线演示 一些布局使用 全屏布局 div classfullscreen header/header main/main footer/footer /divcss .fullscreen { display: flex; flex-direction: column; width: 100vw; height: 100vh; } header { height: 100px; background-color: yellow; } footer { height: 100px; background-color: black; } main { flex: 1; background-color: blue; }圣杯和双飞翼布局 div classgrail div classleft/div div classcenter/div div classright/div /div.grail { display: flex; height: 100vh; width: 100vw; } .right { width: 100px; background-color: blue; } .left { width: 100px; background-color: red; } .center { flex: 1; background-color: yellow; }两列布局(一列固定,一列自适应) div classtwo-column div classleft/div div classright/div /divcss .two-column { display: flex; height: 100vh; width: 100vw; } .left { width: 100px; background-color: blue; } .right { flex: 1; background-color: red; }综合案例 ![[Pasted image 20240106110443.png]] div classcontainerdiv classpart1div classpart1-left/divdiv classpart1-right/div/divdiv classpart2div classpart2-top/divdiv classpart2-middle/divdiv classpart2-bottomdiv classpart2-inputBar/divdiv classpart2-inputBtn/div/div/divdiv classpart3div classpart3-top/divdiv classpart3-middlediv classcard/divdiv classcard/divdiv classcard/divdiv classcard/div/divdiv classpart3-bottom/div/div/divcss body {font-size: small;height: 100vh;width: 100vw;margin: 0;background-color: rgb(216, 216, 216);display: flex;flex-direction: column;justify-content: center;align-items: center;box-sizing: border-box;}div {border: 1px red solid;}.container {display: flex;flex-direction: column;justify-content: space-between;align-items: center;height: 100vh;width: 1200px;background-color: white;/* margin-top: 20px; */padding: 30px 40px;box-sizing: border-box;}.part1 {height: 100px;width: 1100px;display: flex;justify-content: space-between;align-items: center;/* margin-top: 10px; */}.part2 {height: 300px;width: 1100px;display: flex;flex-direction: column;align-items: center;justify-content: space-between;gap: 20px;}.part1-left {height: 80px;width: 300px;display: flex;justify-content: center;align-items: center;gap: 10px;}.part1-right {height: 80px;width: 300px;display: flex;justify-content: space-between;align-items: center;gap: 20px;}.part2-top {margin-top: 2px;width: 800px;height: 100px;}.part2-middle {width: 400px;height: 100px;font-size: 20px;}.part2-bottom {width: 300px;height: 100px;display: flex;justify-content: center;align-items: center;gap: 20px;margin-top: 20px;}.part3 {height: 300px;width: 1100px;display: flex;flex-direction: column;align-items: center;justify-content: space-between;}.part3-top {margin-top: 2px;width: 600px;height: 30px;}.part3-middle {width: 1000px;height: 200px;display: flex;justify-content: space-between;align-items: center;}.part3-bottom {margin-bottom: 2px;width: 300px;height: 50px;}.card {height: 180px;width: 180px;}文章到这里就结束了,文章更多作为自我学习,也希望对你有所帮助,有错欢迎指出。
http://www.zqtcl.cn/news/291834/

相关文章:

  • 社群网站建设网站推广的方式有哪几种
  • 培训机构活动策划网站wordpress 改端口
  • 北京网站制作与营销培训用asp做网站视频
  • 江苏丹阳建设公司网站做网站中的剪辑图片
  • 纯静态网站怎样广州工程造价信息网
  • 为什么网页不能打开建设银行网站企业网站开发综合实训
  • 企业网站制作 深圳网站建站行业公司主页建设
  • 外汇直播网站建设开发做网站空间商需要办什么手续
  • 源码哥网站的模板皮肤病在线咨询医生免费咨询
  • 温岭市市住房和城乡建设规划局网站附近的电脑培训班在哪里
  • 网站备案百度站长提交减肥网站源码
  • 网站添加文章机械代加工厂家
  • 学做各种糕点的网站cn网站建设多少钱
  • 首页网站关键词优化教程如何查询网站点击率
  • 文章类型的网站模版北京朝阳区房价2023年最新房价
  • wap网站发布注销主体和注销网站
  • 微信小程序 做网站满足客户的分销管理系统
  • 高佣联盟做成网站怎么做wordpress 更新版本
  • 杭州营销网站建设公司成都网站排名优化报价
  • 网站建设设计哪家好太原新建火车站
  • 医疗网站建设信息cps推广平台有哪些
  • rp怎么做网站备案 添加网站
  • 汕尾手机网站设计淘宝客做网站怎么做
  • 营口公司网站建设网站百度seo关键词优化
  • 网站开发命名规范汉中网站制作
  • 嘉定网站建设公司泗水做网站ys178
  • 邯郸网站设计招聘网齐家网和土巴兔装修哪家好
  • 京东网站推广方式jquery网页设计成品
  • 做本地网站卖四川省建设科技协会网站首页
  • 注册网站引流wordpress5.0.2图集怎么发布