第五天 列表 流

列表方块 

列表style=

           List-style          none  去掉列表中的数值 

                             Inside  控制序号在里面

                             Outside  控制学号在外面

           List-style-image    将前面的序号换成图片

 格式与布局  页面布局时候在最上面格式里面加*{magin:0px auto;padding 0px}

 auto居中

 位置  关于元素所在位置

Position  fixed  相对于浏览器边框位置固定       

                用四个方向直接调位置 top  right  bottom  left 距离各个方向的像素

         Absolute  和fixed区别是可以动 相对于父级元素,(浏览器,或者是绝对地位的上级)

         Relative  相对自身应该出现的位置四个方向移动

Float   left  向左流

       Right 向右流

       打破div 默认占一行  依次排列 用了流 元素自动浮上一层 magin 一般配合流用

<div style=“ clesr:both”></div> 清掉流! 每个流结束后清一

 

:hover  当鼠标放上来

   鼠标变成手cursor pointer

 

Z-index  分层  必须搭配 float或者position relative使用 数越大越靠上

原文地址:https://www.cnblogs.com/sq45711478/p/5861646.html