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

企业网站代码电影宣传网站模板免费下载

企业网站代码,电影宣传网站模板免费下载,贵港市城乡住房建设厅网站,国外设计网站pinterest极速版1、flex.css样式的使用场景 在移动端开发中#xff0c;并不是所有的浏览器#xff0c;webview#xff0c;微信等各种版本都支持标准的flex#xff0c;但是基本上都会支持-webkit-box#xff0c;所以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.设置主轴方向 templatedivh2从上到下/h2div classbox flexdir:topdiv classitem stylebackground: red1/divdiv classitem stylebackground: blue2/divdiv classitem stylebackground: #0003/div/divh2从右到左/h2div classbox flexdir:rightdiv classitem stylebackground: red1/divdiv classitem stylebackground: blue2/divdiv classitem stylebackground: #0003/div/divh2从下到上/h2div classbox flexdir:bottomdiv classitem stylebackground: red1/divdiv classitem stylebackground: blue2/divdiv classitem stylebackground: #0003/div/divh2从左到右默认/h2div classbox flexdir:leftdiv classitem stylebackground: red1/divdiv classitem stylebackground: blue2/divdiv classitem stylebackground: #0003/div/div/div /template style langscss scoped .box {width: 100%;height: 150px;border: 1px solid #ddd; } .item {width: 30px;height: 30px;line-height: 30px;color: #fff;text-align: center; } /style4、主轴对齐方式 templatedivh2从右到左/h2div classbox flexmain:rightdiv classitem stylebackground: red1/divdiv classitem stylebackground: blue2/divdiv classitem stylebackground: #0003/div/divh2从左到右默认/h2div classbox flexmain:leftdiv classitem stylebackground: red1/divdiv classitem stylebackground: blue2/divdiv classitem stylebackground: #0003/div/divh2两端对齐/h2div classbox flexmain:justifydiv classitem stylebackground: red1/divdiv classitem stylebackground: blue2/divdiv classitem stylebackground: #0003/div/divh2居中对齐/h2div classbox flexmain:centerdiv classitem stylebackground: red1/divdiv classitem stylebackground: blue2/divdiv classitem stylebackground: #0003/div/div/div /template style langscss 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/script5、交叉轴对齐方式 templatedivh2从上到下默认/h2div classbox flexcross:topdiv classitem stylebackground: red;1/divdiv classitem stylebackground: blue;2/divdiv classitem stylebackground: #000;3/div/divh2从下到上/h2div classbox flexcross:bottomdiv classitem stylebackground: red;1/divdiv classitem stylebackground: blue;2/divdiv classitem stylebackground: #000;3/div/divh2基线对齐/h2div classbox flexcross:baselinediv classitem stylebackground: red;1/divdiv classitem stylebackground: blue;2/divdiv classitem stylebackground: #000;3/div/divh2居中对齐/h2div classbox flexcross:centerdiv classitem stylebackground: red;1/divdiv classitem stylebackground: blue;2/divdiv classitem stylebackground: #000;3/div/divh2高度并排铺满/h2div classbox flexcross:stretchdiv classitem stylebackground: red;1/divdiv classitem stylebackground: blue;2/divdiv classitem stylebackground: #000;3/div/div/div /template style langscss 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 /script6、子元素设置 templatedivh2子元素平分空间/h2div classbox flexbox:meandiv classitem stylebackground: red;1/divdiv classitem stylebackground: blue;2/divdiv classitem stylebackground: #000;3/div/divh2第一个子元素不要多余空间其他子元素平分多余空间/h2div classbox flexbox:firstdiv classitem stylebackground: red;1/divdiv classitem stylebackground: blue;2/divdiv classitem stylebackground: #000;3/div/divh2最后一个子元素不要多余空间其他子元素平分多余空间/h2div classbox flexbox:lastdiv classitem stylebackground: red;1/divdiv classitem stylebackground: blue;2/divdiv classitem stylebackground: #000;3/div/divh2两端第一个元素不要多余空间其他子元素平分多余空间/h2div classbox flexbox:justifydiv classitem stylebackground: red;1/divdiv classitem stylebackground: blue;2/divdiv classitem stylebackground: #000;3/div/div/div /template 7、flex-box元素剩余空间比例分配 templatedivh2flex-box实现两端不需要多余空间中间占满剩余空间/h2div classbox flexdiv classitem flex-box0 stylebackground: red1/divdiv classitem flex-box1 stylebackground: blue2/divdiv classitem flex-box0 stylebackground: #0003/div/div/div /templatestyle langscss scoped .box {width: 100%;height: 100px;border: 1px solid #ddd; } .item {width: 30px;height: 30px;line-height: 30px;color: #fff;text-align: center; } /stylescript setup/script
http://www.hkea.cn/news/14328849/

相关文章:

  • 重庆营销型网站建设公司网站分为哪些部分组成部分组成
  • 网站没流量做网站时尺寸多大
  • 网站站点建设的端口中山织树网站建设
  • 网站赚钱系统wordpress 标签链接地址
  • 一学一做看视频网站有哪些内容商城网站开发合同
  • php语言的网站建设公司网公司网页设计制作
  • 海南网站备案域名购买 万网
  • 网站建设编程怎么写网站制作软件dw
  • 沈阳建网站的公司公众号在哪里找
  • 建设部网站建筑工程质保期怎么选择一家好的网站建设公司
  • 品牌商城网站开发网站建设主要研究内容
  • 别人做的网站潍坊百度关键词排名
  • 郑州网站建设代理天蝎网络服务公司
  • 设计素材网站情人节零基础网站建设教学服务
  • 辽宁丹东建设厅网站网上建立公司网站
  • 品牌网站建设信息沈阳定制网络机箱机柜
  • 网站建设属于什么合同微网站设计制作
  • 进网站备案时间设计本网站
  • 网站推广服务 商务服务建网站要钱吗
  • 网站百度显示绿色官网字如何做的计算机网站建设与开发
  • seo研究中心好客站网站导航一定要一样吗
  • 做外贸网站的效果怎么样做ppt兼职网站有哪些
  • 企业门户网站建设思路html编辑器手机版
  • 做网站需要招什么条件阿里巴巴做网站费用计入
  • 吴江建设局房产网站怎么样用ppt做网站
  • dedecms建网站做网站优化公司排行
  • 城乡建设杂志官方网站第八章 电子商务网站建设试题
  • 图片网站 模板如何创建二级域名
  • 做得好的企业网站连云港建设厅官方网站
  • 青浦做网站深圳有哪些网站公司