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

如何优化好一个网站网站建设pdf微盘

如何优化好一个网站,网站建设pdf微盘,网站制作需要哪些软件有哪些,做网站成功什么是flex.css? css3 flex 布局相信很多人已经听说过甚至已经在开发中使用过它#xff0c;但是我想我们都会有一个共同的经历#xff0c;面对它的各种版本#xff0c;各种坑#xff0c;傻傻的分不清楚#xff0c;flex.css就是对flex布局的一种封装#xff0c;通过简洁…什么是flex.css? css3 flex 布局相信很多人已经听说过甚至已经在开发中使用过它但是我想我们都会有一个共同的经历面对它的各种版本各种坑傻傻的分不清楚flex.css就是对flex布局的一种封装通过简洁的属性设置就能使得它完美的运行在移动端的各种浏览器甚至能运行在ie10 的各种PC端浏览器中。它天然的能够很好的将页面布局和css进行分离让css专注于元素的显示效果我称之为声明式布局...... flex和data-flex flex.css 有两个版本一个是flex.css一个是data-flex.css这两个版本其实是一样的唯一的区别是一个是使用flex属性设置一个是使用data-flex属性设置。react 不支持flex属性直接布局所以data-flex.css实际上是为了react而诞生的 安装flex.css 官方地址https://github.com/lzxb/flex.css 通过npm安装 npm install --save flex.css 本例子教程例子则是从官方项目下载下来后解压出来后将dist目录下的flex.css文件引入使用 Hello world !DOCTYPE html html langenheadmeta charsetUTF-8titleHello world/titlelink relstylesheet href./flex.cssstyle typetext/css.box {width: 150px;height: 150px;border: 1px solid #ddd;}/style /headbodydiv classbox flexHello world/div /body/html设置主轴方向 !DOCTYPE html html langenheadmeta charsetUTF-8title设置主轴方向/titlelink relstylesheet href./flex.cssstyle typetext/css.box {width: 150px;height: 150px;border: 1px solid #ddd;}.item {width: 30px;height: 30px;line-height: 30px;color: #fff;text-align: center;}/style /headbodyh2从上到下/h2div classbox flexdir:topdiv classitem stylebackground: red;1/divdiv classitem stylebackground: blue;2/divdiv classitem stylebackground: #000;3/div/divh2从右到左/h2div classbox flexdir:rightdiv classitem stylebackground: red;1/divdiv classitem stylebackground: blue;2/divdiv classitem stylebackground: #000;3/div/divh2从下到上/h2div classbox flexdir:bottomdiv classitem stylebackground: red;1/divdiv classitem stylebackground: blue;2/divdiv classitem stylebackground: #000;3/div/divh2从左到右默认/h2div classbox flexdir:leftdiv classitem stylebackground: red;1/divdiv classitem stylebackground: blue;2/divdiv classitem stylebackground: #000;3/div/div /body/html主轴对齐方式 !DOCTYPE html html langenheadmeta charsetUTF-8title主轴对齐方式/titlelink relstylesheet href./flex.cssstyle typetext/css.box {width: 150px;height: 150px;border: 1px solid #ddd;}.item {width: 30px;height: 30px;line-height: 30px;color: #fff;text-align: center;}/style /headbodyh2从右到左/h2div classbox flexmain:rightdiv classitem stylebackground: red;1/divdiv classitem stylebackground: blue;2/divdiv classitem stylebackground: #000;3/div/divh2从左到右默认/h2div classbox flexmain:leftdiv classitem stylebackground: red;1/divdiv classitem stylebackground: blue;2/divdiv classitem stylebackground: #000;3/div/divh2两端对齐/h2div classbox flexmain:justifydiv classitem stylebackground: red;1/divdiv classitem stylebackground: blue;2/divdiv classitem stylebackground: #000;3/div/divh2居中对齐/h2div classbox flexmain:centerdiv classitem stylebackground: red;1/divdiv classitem stylebackground: blue;2/divdiv classitem stylebackground: #000;3/div/div /body/html交叉轴对齐方式 !DOCTYPE html html langenheadmeta charsetUTF-8title交叉轴对齐方式/titlelink relstylesheet href./flex.cssstyle typetext/css.box {width: 150px;height: 150px;border: 1px solid #ddd;}.item {width: 30px;/*height: 30px;*/line-height: 30px;color: #fff;text-align: center;}/style /headbodyh2从上到下默认/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 stylefont-size: 30px; background: red;1/divdiv classitem stylefont-size: 12px; background: blue;2/divdiv classitem stylefont-size: 40px; background: #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 /body/html子元素设置 !DOCTYPE html html langenheadmeta charsetUTF-8title交叉轴对齐方式/titlelink relstylesheet href./flex.cssstyle typetext/css.box {width: 150px;height: 150px;border: 1px solid #ddd;}.item {width: 30px;height: 30px;line-height: 30px;color: #fff;text-align: center;}/style /headbodyh2子元素平分空间/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 /body/htmlflex-box元素剩余空间比例分配 取值范围(0-10)单独设置子元素多余空间的如何分配设置为0则子元素不占用多余的多余空间 多余空间分配 当前flex-box值/子元素的flex-box值相加之和 flex-box实现两端不需要多余空间中间占满剩余空间 !DOCTYPE html html langenheadmeta charsetUTF-8titleflex-box实现两端不需要多余空间中间占满剩余空间/titlelink relstylesheet href./flex.cssstyle typetext/css.box {width: 150px;height: 150px;border: 1px solid #ddd;}.item {width: 30px;height: 30px;line-height: 30px;color: #fff;text-align: center;}/style /headbodyh2flex-box实现两端不需要多余空间中间占满剩余空间/h2div classbox flexdiv classitem flex-box0 stylebackground: red;1/divdiv classitem flex-box1 stylebackground: blue;2/divdiv classitem flex-box0 stylebackground: #000;3/div/div /body/html水平居中 !DOCTYPE html html langenheadmeta charsetUTF-8title水平居中/titlelink relstylesheet href./flex.cssstyle typetext/css.box {width: 150px;height: 150px;border: 1px solid #ddd;}.item {width: 30px;height: 30px;line-height: 30px;color: #fff;text-align: center;}/style /headbodyh2水平居中/h2div classbox flexmain:center cross:centerdiv classitem stylebackground: red;1/divdiv classitem stylebackground: blue;2/divdiv classitem stylebackground: #000;3/div/div /body/html还有更强大的等待你的发现 更多专业前端知识请上 【猿2048】www.mk2048.com
http://www.zqtcl.cn/news/942275/

相关文章:

  • 东莞旅游网站建设微网站怎么做
  • 网站怎么没有排名做义工旅行有哪些网站
  • 阳江房地产信息网官方网站创业网站开发要多少钱
  • 工业设计招聘信息网站常用的seo网站优化排名
  • 温岭市建设规划局网站网站规划与建设ppt
  • 龙岩网站建设较好的公司做网站销售的换工作
  • 潞城建设局网站建设网站服务器自营方式的特点
  • 西安网站seo公司东莞市专注网站建设怎么样
  • dede游戏网站模板如何做盆栽蔬菜网站
  • 江都建设网站网站开发技术介绍
  • 网站介绍视频怎么做网站建设优化服务
  • 可以左右滑动的网站有口碑的盐城网站建设
  • 360报危险网站注册界面设计
  • 不用淘宝客api如何做网站北京移动官网网站建设
  • 手表哪个网站做的好河北网站备案流程
  • 凡科做的网站推效果网站做seo第一步
  • 建设在线观看视频网站免费企业网站建设免费
  • 网站开发需要后台吗哪家建站公司好
  • 个人建设网站论文网站视频怎么做的
  • 不同类型的购物网站汉川网站建设
  • 网站开发需求文档范文广州公司网站托管
  • 网站制作公司官网首页撸撸撸做最好的导航网站
  • 网站建设毕业设计综述centos 安装wordpress lnmp
  • 济宁专业做网站网站建设中 html
  • 中国排名高的购物网站最新发布的手机2022
  • 备案的网站名与公司名称出国用哪个地图app好
  • 网站建设工作室图片文章资讯类网站
  • 深圳自助建站系统网站题目有哪些
  • 郑州做网站kuihuakeji软文发布的平台与板块
  • 一那个网站可以做一建题安全文化企业示范企业评价标准