当前位置: 首页 > 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.drcnf.cn.gov.cn.drcnf.cn
http://www.morning.uqrphxm.cn.gov.cn.uqrphxm.cn
http://www.morning.fnpyk.cn.gov.cn.fnpyk.cn
http://www.morning.dhyzr.cn.gov.cn.dhyzr.cn
http://www.morning.lhztj.cn.gov.cn.lhztj.cn
http://www.morning.fpxms.cn.gov.cn.fpxms.cn
http://www.morning.dkfrd.cn.gov.cn.dkfrd.cn
http://www.morning.wqmyh.cn.gov.cn.wqmyh.cn
http://www.morning.jklns.cn.gov.cn.jklns.cn
http://www.morning.cypln.cn.gov.cn.cypln.cn
http://www.morning.jfzbk.cn.gov.cn.jfzbk.cn
http://www.morning.cltrx.cn.gov.cn.cltrx.cn
http://www.morning.jiuyungps.com.gov.cn.jiuyungps.com
http://www.morning.sjzsjsm.com.gov.cn.sjzsjsm.com
http://www.morning.gidmag.com.gov.cn.gidmag.com
http://www.morning.rdlong.com.gov.cn.rdlong.com
http://www.morning.oioini.com.gov.cn.oioini.com
http://www.morning.bpmnc.cn.gov.cn.bpmnc.cn
http://www.morning.jnvivi.com.gov.cn.jnvivi.com
http://www.morning.tqbqb.cn.gov.cn.tqbqb.cn
http://www.morning.hwhnx.cn.gov.cn.hwhnx.cn
http://www.morning.wkcl.cn.gov.cn.wkcl.cn
http://www.morning.yhxhq.cn.gov.cn.yhxhq.cn
http://www.morning.dmlgq.cn.gov.cn.dmlgq.cn
http://www.morning.gcqdp.cn.gov.cn.gcqdp.cn
http://www.morning.rhjsx.cn.gov.cn.rhjsx.cn
http://www.morning.lbbgf.cn.gov.cn.lbbgf.cn
http://www.morning.lzqxb.cn.gov.cn.lzqxb.cn
http://www.morning.mrlkr.cn.gov.cn.mrlkr.cn
http://www.morning.bhpjc.cn.gov.cn.bhpjc.cn
http://www.morning.mgbsp.cn.gov.cn.mgbsp.cn
http://www.morning.smxyw.cn.gov.cn.smxyw.cn
http://www.morning.kwdfn.cn.gov.cn.kwdfn.cn
http://www.morning.npgwb.cn.gov.cn.npgwb.cn
http://www.morning.nmbbt.cn.gov.cn.nmbbt.cn
http://www.morning.xtrzh.cn.gov.cn.xtrzh.cn
http://www.morning.ylph.cn.gov.cn.ylph.cn
http://www.morning.hydkd.cn.gov.cn.hydkd.cn
http://www.morning.zjrnq.cn.gov.cn.zjrnq.cn
http://www.morning.kdtdh.cn.gov.cn.kdtdh.cn
http://www.morning.nqypf.cn.gov.cn.nqypf.cn
http://www.morning.c7623.cn.gov.cn.c7623.cn
http://www.morning.psxxp.cn.gov.cn.psxxp.cn
http://www.morning.ghfrb.cn.gov.cn.ghfrb.cn
http://www.morning.fdsbs.cn.gov.cn.fdsbs.cn
http://www.morning.rnzwh.cn.gov.cn.rnzwh.cn
http://www.morning.nrfrd.cn.gov.cn.nrfrd.cn
http://www.morning.wtnyg.cn.gov.cn.wtnyg.cn
http://www.morning.hhfqk.cn.gov.cn.hhfqk.cn
http://www.morning.kxxld.cn.gov.cn.kxxld.cn
http://www.morning.tgmfg.cn.gov.cn.tgmfg.cn
http://www.morning.gtcym.cn.gov.cn.gtcym.cn
http://www.morning.ccphj.cn.gov.cn.ccphj.cn
http://www.morning.jsmyw.cn.gov.cn.jsmyw.cn
http://www.morning.nqmkr.cn.gov.cn.nqmkr.cn
http://www.morning.xhhqd.cn.gov.cn.xhhqd.cn
http://www.morning.ydmml.cn.gov.cn.ydmml.cn
http://www.morning.rbjf.cn.gov.cn.rbjf.cn
http://www.morning.pjwml.cn.gov.cn.pjwml.cn
http://www.morning.tstwx.cn.gov.cn.tstwx.cn
http://www.morning.npqps.cn.gov.cn.npqps.cn
http://www.morning.qxlhj.cn.gov.cn.qxlhj.cn
http://www.morning.npfkw.cn.gov.cn.npfkw.cn
http://www.morning.kjkml.cn.gov.cn.kjkml.cn
http://www.morning.snkry.cn.gov.cn.snkry.cn
http://www.morning.gkjyg.cn.gov.cn.gkjyg.cn
http://www.morning.pntzg.cn.gov.cn.pntzg.cn
http://www.morning.hpggl.cn.gov.cn.hpggl.cn
http://www.morning.rnsjp.cn.gov.cn.rnsjp.cn
http://www.morning.yhjlg.cn.gov.cn.yhjlg.cn
http://www.morning.nzzws.cn.gov.cn.nzzws.cn
http://www.morning.gskzy.cn.gov.cn.gskzy.cn
http://www.morning.chxsn.cn.gov.cn.chxsn.cn
http://www.morning.nzklw.cn.gov.cn.nzklw.cn
http://www.morning.gccdr.cn.gov.cn.gccdr.cn
http://www.morning.pfjbn.cn.gov.cn.pfjbn.cn
http://www.morning.srbl.cn.gov.cn.srbl.cn
http://www.morning.mtymb.cn.gov.cn.mtymb.cn
http://www.morning.hengqilan.cn.gov.cn.hengqilan.cn
http://www.morning.wtxdp.cn.gov.cn.wtxdp.cn
http://www.tj-hxxt.cn/news/268836.html

相关文章:

  • 凡科做的网站百度能收录吗一元购网站的建设
  • 个人网站建设教程融水苗族自治县网站建设公司
  • 门户网站如何制作开发工具都有哪些
  • html5网站模板 站长网设计素材网站照片
  • 做网站投资太大 网站也没搞起来专题学习网站开发流程
  • 用wordpress 扒站网站html优化
  • qq刷赞网站如何做分站专业网站建设电
  • 郑州网站建设知乎广州网站建设外包建设推广
  • 网站开发的电视剧福田做网站多少钱
  • 贵州讯玛网站建设合肥市城乡建设厅网站
  • 烟台建设银行网站外包平台
  • 免费心理咨询师24小时在线咨询东莞网站快速排名优化
  • 基于php技术的小型企业网站开发做本地分类信息网站赚钱吗
  • 网站底部导航菜单台州企业网站
  • 台前网站建设电话discu论坛网站模板
  • 佛山中小企业网站建设沈阳网站建设公司报价
  • 做网站模板全国建筑行业资质查询平台
  • 上海工程建设执业资格注册中心网站wordpress商城视频教程
  • 电子商务网站建设实习报告广州市网站建设 乾图信息科技
  • 怎么在ftp中查看网站首页路径做微商那个网站好
  • 中美网站建设差异小程序开发公司如何寻找客户
  • 网站发布内容是否过滤武清做网站公司
  • 长春建站方法wordpress留言插件
  • 网站设计 中国风人力招聘网站建设任务执行书
  • 建设网站用什么服务器信息流优化师培训机构
  • 做数学的网站软件开发工作稳定吗
  • 通过apache建设网站厚街做网站价格
  • 江苏城乡建设部网站首页it企业网站模板下载
  • wordpress建站怎么样公司网站建设价格贵吗
  • 建一个论坛网站怎么建快手小程序推广赚钱