纯js页面跳转整理

position:static(静态定位) 当position属性定义为static时,可以将元素定义为静态位置,所谓静态位置就是各个元素在HTML文档流中应有的位置 podisition定位问题。所以当没有定义position属性时,并不说明该元素没有自己的位置,它会遵循默认显示为静态位置,在静态定位状态下无法通过坐标值(top,left,right,bottom)来改变它的位置。 position:absolute(绝对定位) 当position属性定义为absolute时,元素会脱离文档流,完全不受文档流的影响,根据某个参照物坐标来定位它的位置.当绝对定位元素没有显示的指明top,right,bottom,left定位属性时,它还是暂时未脱离文档流,并受文档流的影响,具有相对定位的特性,但是它在文档流中的位置已经不存在了。如果绝对定位只显示的定位x轴或者Y轴,那它只具备这个方向上的定位能力,另一个方向仍然显示为相对定位的特性。 坐标值: top:表示定位元素顶边外壁到参照物元素顶部内壁的距离 right:表示定位元素右边外壁到参照物元素右侧内壁的距离 left:表示定位元素左边外壁到参照物元素左侧内壁的距离 bottom:表示定位元素底边外壁到参照物元素底部内壁的距离http://read.qidian.com/BookReader/1082665,65472089.aspx
http://read.qidian.com/BookReader/1082665,65472092.aspx
http://read.qidian.com/BookReader/1082665,.aspx
http://read.qidian.com/BookReader/1082665,65472090.aspx
http://read.qidian.com/BookReader/1082665,65472093.aspx
http://read.qidian.com/BookReader/1082665,65472094.aspx
http://read.qidian.com/BookReader/1082665,65472097.aspx
http://read.qidian.com/BookReader/1082665,65472096.aspx
http://read.qidian.com/BookReader/1082665,65472095.aspx
http://read.qidian.com/BookReader/1082665,65472100.aspx
http://read.qidian.com/BookReader/1082665,65472101.aspx
http://read.qidian.com/BookReader/1082665,65472102.aspx
http://read.qidian.com/BookReader/1082665,65472103.aspx
http://read.qidian.com/BookReader/1082665,65472105.aspx
http://read.qidian.com/BookReader/1082665,65472107.aspx
http://read.qidian.com/BookReader/1082665,65472110.aspx
http://read.qidian.com/BookReader/1082665,65472109.aspx
http://read.qidian.com/BookReader/1082665,65472108.aspx
http://read.qidian.com/BookReader/1082665,65472113.aspx
http://read.qidian.com/BookReader/1082665,65472112.aspx
http://read.qidian.com/BookReader/1082665,65472114.aspx
http://read.qidian.com/BookReader/1082665,65472116.aspx
http://read.qidian.com/BookReader/1082665,65472111.aspx
http://read.qidian.com/BookReader/1082665,65472118.aspx
http://read.qidian.com/BookReader/1082665,65472120.aspx
http://read.qidian.com/BookReader/1082665,65472121.aspx
http://read.qidian.com/BookReader/1082665,65472122.aspx
http://read.qidian.com/BookReader/1082665,65472123.aspx
http://read.qidian.com/BookReader/1082665,65472124.aspx
http://read.qidian.com/BookReader/1082665,65472126.aspx
http://read.qidian.com/BookReader/1082665,65472127.aspx
http://read.qidian.com/BookReader/1082665,65472125.aspx
http://read.qidian.com/BookReader/1082665,65472128.aspx
http://read.qidian.com/BookReader/1082665,65472130.aspx
http://read.qidian.com/BookReader/1082665,65472134.aspx
http://read.qidian.com/BookReader/1082665,65472133.aspx
http://read.qidian.com/BookReader/1082665,65472137.aspx
http://read.qidian.com/BookReader/1082665,65472129.aspx
http://read.qidian.com/BookReader/1082665,65472132.aspx
http://read.qidian.com/BookReader/1082665,65472135.aspx
http://read.qidian.com/BookReader/1082665,65472131.aspx
http://read.qidian.com/BookReader/1082665,65472136.aspx

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。