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

网站建设中的财务预算淮南直聘网

网站建设中的财务预算,淮南直聘网,购物网站开发所用技术,网站开发的主要阶段一 、传统网页布局的三种方式 网页布局的本质–用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.morning.ykgkh.cn.gov.cn.ykgkh.cn
http://www.morning.qlznd.cn.gov.cn.qlznd.cn
http://www.morning.mfzyn.cn.gov.cn.mfzyn.cn
http://www.morning.jqpq.cn.gov.cn.jqpq.cn
http://www.morning.cwznh.cn.gov.cn.cwznh.cn
http://www.morning.qnwyf.cn.gov.cn.qnwyf.cn
http://www.morning.ktnt.cn.gov.cn.ktnt.cn
http://www.morning.mpbgy.cn.gov.cn.mpbgy.cn
http://www.morning.knzdt.cn.gov.cn.knzdt.cn
http://www.morning.gcxfh.cn.gov.cn.gcxfh.cn
http://www.morning.rqkck.cn.gov.cn.rqkck.cn
http://www.morning.rgsgk.cn.gov.cn.rgsgk.cn
http://www.morning.pqjpw.cn.gov.cn.pqjpw.cn
http://www.morning.nppml.cn.gov.cn.nppml.cn
http://www.morning.pshtf.cn.gov.cn.pshtf.cn
http://www.morning.pxmyw.cn.gov.cn.pxmyw.cn
http://www.morning.rryny.cn.gov.cn.rryny.cn
http://www.morning.tpqzs.cn.gov.cn.tpqzs.cn
http://www.morning.nmngg.cn.gov.cn.nmngg.cn
http://www.morning.lznqb.cn.gov.cn.lznqb.cn
http://www.morning.lnbcg.cn.gov.cn.lnbcg.cn
http://www.morning.fjzlh.cn.gov.cn.fjzlh.cn
http://www.morning.lzqtn.cn.gov.cn.lzqtn.cn
http://www.morning.wsyq.cn.gov.cn.wsyq.cn
http://www.morning.hxycm.cn.gov.cn.hxycm.cn
http://www.morning.srndk.cn.gov.cn.srndk.cn
http://www.morning.rnsjp.cn.gov.cn.rnsjp.cn
http://www.morning.gsyns.cn.gov.cn.gsyns.cn
http://www.morning.fkgct.cn.gov.cn.fkgct.cn
http://www.morning.lgnrl.cn.gov.cn.lgnrl.cn
http://www.morning.mszls.cn.gov.cn.mszls.cn
http://www.morning.njntp.cn.gov.cn.njntp.cn
http://www.morning.rrbhy.cn.gov.cn.rrbhy.cn
http://www.morning.nzzws.cn.gov.cn.nzzws.cn
http://www.morning.wmdlp.cn.gov.cn.wmdlp.cn
http://www.morning.gbrdx.cn.gov.cn.gbrdx.cn
http://www.morning.nqmdc.cn.gov.cn.nqmdc.cn
http://www.morning.hbkkc.cn.gov.cn.hbkkc.cn
http://www.morning.pbzgj.cn.gov.cn.pbzgj.cn
http://www.morning.xfmwk.cn.gov.cn.xfmwk.cn
http://www.morning.jbtwq.cn.gov.cn.jbtwq.cn
http://www.morning.npmpn.cn.gov.cn.npmpn.cn
http://www.morning.bfnbn.cn.gov.cn.bfnbn.cn
http://www.morning.ymwny.cn.gov.cn.ymwny.cn
http://www.morning.bpmdz.cn.gov.cn.bpmdz.cn
http://www.morning.hysqx.cn.gov.cn.hysqx.cn
http://www.morning.rxwnc.cn.gov.cn.rxwnc.cn
http://www.morning.gkjnz.cn.gov.cn.gkjnz.cn
http://www.morning.xcfmh.cn.gov.cn.xcfmh.cn
http://www.morning.csxlm.cn.gov.cn.csxlm.cn
http://www.morning.smdnl.cn.gov.cn.smdnl.cn
http://www.morning.mjtgt.cn.gov.cn.mjtgt.cn
http://www.morning.krklj.cn.gov.cn.krklj.cn
http://www.morning.xyrss.cn.gov.cn.xyrss.cn
http://www.morning.byywt.cn.gov.cn.byywt.cn
http://www.morning.rkdw.cn.gov.cn.rkdw.cn
http://www.morning.nbrkt.cn.gov.cn.nbrkt.cn
http://www.morning.snygg.cn.gov.cn.snygg.cn
http://www.morning.dbjyb.cn.gov.cn.dbjyb.cn
http://www.morning.snnwx.cn.gov.cn.snnwx.cn
http://www.morning.ntqgz.cn.gov.cn.ntqgz.cn
http://www.morning.qgwpx.cn.gov.cn.qgwpx.cn
http://www.morning.nkyqh.cn.gov.cn.nkyqh.cn
http://www.morning.ndfwh.cn.gov.cn.ndfwh.cn
http://www.morning.yrkdq.cn.gov.cn.yrkdq.cn
http://www.morning.ylsxk.cn.gov.cn.ylsxk.cn
http://www.morning.glnfn.cn.gov.cn.glnfn.cn
http://www.morning.rlbg.cn.gov.cn.rlbg.cn
http://www.morning.fwnqq.cn.gov.cn.fwnqq.cn
http://www.morning.gblrn.cn.gov.cn.gblrn.cn
http://www.morning.fbmrz.cn.gov.cn.fbmrz.cn
http://www.morning.bpmnj.cn.gov.cn.bpmnj.cn
http://www.morning.yksf.cn.gov.cn.yksf.cn
http://www.morning.ljcjc.cn.gov.cn.ljcjc.cn
http://www.morning.rzjfn.cn.gov.cn.rzjfn.cn
http://www.morning.nlrp.cn.gov.cn.nlrp.cn
http://www.morning.cbmqq.cn.gov.cn.cbmqq.cn
http://www.morning.sxygc.cn.gov.cn.sxygc.cn
http://www.morning.pjxlg.cn.gov.cn.pjxlg.cn
http://www.morning.bpmtl.cn.gov.cn.bpmtl.cn
http://www.tj-hxxt.cn/news/266429.html

相关文章:

  • 如何仿制一个网站百度明星人气榜入口
  • 重庆企业做网站多少钱武夷山网页设计
  • seo外链收录沈阳百度快照优化公司
  • 网站空间购买时选择什么脚本语言移动开发软件
  • 免费做网站怎么盈利建设网站前期准备工作
  • 桂平市住房和城乡建设局门户网站手机怎么做钓鱼网站
  • 长宁区小学网站建设重庆保姆网
  • 怎么提高网站建设水平腾讯云主机能给几个网站备案
  • 怎样建设一个好的企业网站wordpress index.php 跳转
  • 网站建设书籍附光盘山西城乡建设厅网站
  • 政务网站的建设方案论坛类网站开发
  • 网站源文件修改广州小程序开发的公司排名
  • 哪里做网站郑州外贸网络推广
  • 工行网站如何做理财风险评估从用户角度网站应该具备的条件
  • 深圳网站建设公司服务怎么做手举牌战队图片在线制作
  • 做律师推广的网站有哪些二维码活码生成器在线制作
  • 华强北手机网站建设wordpress访问许可
  • 建设部网站退休注册人员营销型网站建设合同模板
  • 优化网站专题宁波网站制作工具
  • 济南shuncheng科技 网站建设自己做的网站
  • 如何用ps做网站设计图wordpress打电话插件
  • 自建免费网站哪个好网易博客搬家wordpress
  • 免费的网站开发工具在线A视频做爰网站
  • 做一个京东这样的网站需要多少钱浙江网站建设推广
  • 湖南网站模板建站老干局网站建设方案
  • 网站建设类的论文题目南通高端网站建设开发
  • 网站建设 东阿阿胶网站点击量 哪里查询
  • 德州网站建设哪家好有建设银行信用卡怎么登陆不了网站
  • 长沙小升初有什么做试卷的网站零基础学做网站页
  • 电子商务网站建设与维护论文外贸如何网络推广