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

网站建设中的财务预算WordPress支持的数据库

网站建设中的财务预算,WordPress支持的数据库,信盈达嵌入式培训,青岛房产网站建设一 、传统网页布局的三种方式 网页布局的本质–用CSS来摆放盒子#xff0c;把盒子摆放到相应的位置#xff0c;css提供了三种传统布局方式#xff0c;分别是标准流#xff0c;浮动和定位三种。 二、 定位 2.1 啥是定位 我的理解#xff0c;就是要把这个元素#xff0c…一 、传统网页布局的三种方式 网页布局的本质–用CSS来摆放盒子把盒子摆放到相应的位置css提供了三种传统布局方式分别是标准流浮动和定位三种。 二、 定位  2.1 啥是定位 我的理解就是要把这个元素放在哪个位置这就是定位。 2.2 实现定位 通过属性 position 实现 2.3 定位的四种方式 前提页面中有4个box. !DOCTYPE html htmlheadmeta charsetutf-8title/titlestyle.box{background-color: aquamarine;width: 100px;height: 100px;}.box1{background-color: aqua;width: 120px;height: 120px;}.box2{background-color: olive;width: 150px;height: 150px;}.box3{background-color: olive;background-color: chocolate;width: 180px;height: 180px;}/style/headbodydiv classboxbox/divdiv classbox1box1/divdiv classbox2box2/divdiv classbox3box3/div/body /html 2.3.1 静态定位 设置方式为position: static; 静态定位的盒子是标准流状态用于取消定位。 静态定位的盒子处于网页的最底层并且top、left、bottom、right属性都不起作用。 2.3.2 相对定位 设置方式为position: relative; 相对定位相对于原来在文档流的位置进行偏移 相对定位的盒子没有脱离标准流在页面中占据位置盒子的层级高于标准流和浮动的盒子top、left、bottom、right属性都会起作用。 设置了top、left、bottom、right属性后相对定位的盒子是相对自己在标准流中的位置进行偏移但是盒子在页面中占据的位置是不会改变的。 操作 设置box1 相对定位进行偏移. .box1{background-color: aqua;width: 120px;height: 120px;position: relative;left: 20px;bottom: 2.5rem;} 效果 box1 相对于原来在文档流的位置进行偏移 2.3.3 绝对定位 设置方式为position: absolute; 绝对定位的盒子脱离了标准流在页面中不占位置. 盒子的层级高于标准流和浮动的盒子top、left、bottom、right属性都会起作用。 注意 设置了top、left、bottom、right属性后绝对定位的盒子是相对设置了定位属性静态定位不算的最近的父级盒子的位置进行偏移 如果没有设置了定位的父级盒子则是相对于body标签进行偏移。 绝对定位的盒子可以通过设置z-index属性改变层级。 举例 设置绝对属性的元素它的最近的父类没有设置定位则相对于body标签进行偏移。 !DOCTYPE html htmlheadmeta charsetutf-8title/titlestyle.box{background-color: aquamarine;width: 100px;height: 100px;}.box1{background-color: aqua;width: 120px;height: 120px;position: absolute;left: 20px;bottom: 2.5rem;}.box2{background-color: olive;width: 150px;height: 150px;}.box3{background-color: olive;background-color: chocolate;width: 180px;height: 180px;}/style/headbodydiv classboxbox/divdiv classbox1box1/divdiv classbox2box2/divdiv classbox3box3/div/body /html 绝对定位的元素box1,相对于body进行了偏移  举例 设置绝对属性的元素与它最近的父级盒子的位置进行偏移。 如下图box6 设置了绝对定位。box6的父类idapp 设置了相对定位。 则box6的位置是相对于它的app父类进行偏移的。 !DOCTYPE html htmlheadmeta charsetutf-8title/titlestyle#app{background-color: chartreuse;position: relative;height: 200px;}.box5{background-color: aquamarine;width: 100px;height: 100px;}.box6{background-color: aqua;width: 120px;height: 120px;position: absolute;left: 200px;}.box{background-color: aquamarine;width: 100px;height: 100px;}.box1{background-color: aqua;width: 120px;height: 120px;}.box2{background-color: olive;width: 150px;height: 150px;}.box3{background-color: olive;background-color: chocolate;width: 180px;height: 180px;}/style/headbodydiv classboxbox/divdiv classbox1box1/divdiv classmybigbox idappdiv classbox5box5/divdiv classbox6box6/div/divdiv classbox2box2/divdiv classbox3box3/div/body /html 案例 实现banner两侧的滑动按钮。 父类设置相对定位子类设置绝对定位。 !DOCTYPE html htmlheadmeta charsetutf-8title/titlestyle#app{background-color: chartreuse;position: relative;height: 200px;}.box5{background-color: aquamarine;width: 100px;height: 100px;position: absolute;left: 200px;top: 40%;}.box6{background-color: aqua;width: 100px;height: 100px;position: absolute;right: 200px;top: 40%;}.box{background-color: aquamarine;width: 100px;height: 100px;}.box1{background-color: aqua;width: 120px;height: 120px;}.box2{background-color: olive;width: 150px;height: 150px;}.box3{background-color: olive;background-color: chocolate;width: 180px;height: 180px;}/style/headbodydiv classmybigbox idappdiv classbox5box5/divdiv classbox6box6/div/divdiv classboxbox/divdiv classbox1box1/divdiv classbox2box2/divdiv classbox3box3/div/body /html 2.3.4 固定定位 设置方式为position: fixed; 固定定位的盒子脱离了标准流在页面中不占位置 盒子的层级高于标准流和浮动的盒子top、left、bottom、right属性都会起作用。 设置了top、left、bottom、right属性后固定定位的盒子是相对浏览器串口进行偏移。不管浏览器滚动条如何滚动固定定位的盒子永远显示在浏览器窗口不会出现滚动条往下滚动后就看不到固定定位的盒子的情况。因此固定定位的盒子常用于做底部导航栏和顶部导航栏。 固定定位的盒子可以通过设置z-index属性改变层级。 固定定位的盒子默认的宽高由其内容决定。 .box{background-color: aquamarine;position: fixed;right: 20px;width: 100px;height: 100px;}
http://www.hkea.cn/news/14448996/

相关文章:

  • 如何在自己做的网站中顶置内容做电影网站服务器
  • 深圳品牌网站建设服务网站开发用了哪些技术
  • 做网站需要的导航wordpress找不到对象
  • 网站搭建兼职深圳住房和建设厅网站首页
  • 个人备案可以做企业网站吗事业单位报名网站
  • 旅行社门店做网站嘛手机网站建设制作公司
  • 苏州手机网站seo脑卒中中心建设网站
  • 网站怎样做漂浮wordpress主题换图片
  • 好网站建设公司有哪些小程序开发公司哪里强
  • 怎么用网站做转换服务器ui设计需要学哪些内容
  • 无为县城乡建设局网站首页化妆品wordpress主题
  • 龙岩网站建设较好的公司搜索引擎优化的完整过程
  • 什么是交互式网站开发财税公司网站开发
  • 做网站一年费用做网页的网站
  • 广东省城乡建设厅投诉网站免费设计标志
  • 贵州能源网站 中企动力建设网站主机一个g
  • 全世界做会展介绍的网站排名云谷系统网站开发
  • 昆明网站建设一条龙服务做食品那些网站好
  • 网站建设组织机构工业和信息化部关于开展加强网站备案管理专项行动的通知
  • 建站系统cms是什么wordpress 电影网站
  • 效果图网站推荐大全面包砖株洲营销网站建设
  • 建站网站模板下载坚持以高质量发展为首要任务一
  • 网站关键词在哪设置设计网站排行
  • 网站优化宝外贸公司网站如何免费推广
  • 亳州网站建设推广旅游网页设计模板下载
  • 毕设帮做网站网站做链接代码
  • 备案怎么关闭网站吗网站开发项目费用预算
  • 天津营销网站建设联系方式佛山 做网站公司
  • 模版网站如何建站专业网站建设包括哪些
  • 网站后台管理系统的重要技术指标网络营销案例分析题目