博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
对css语法中position值的理解
阅读量:4589 次
发布时间:2019-06-09

本文共 317 字,大约阅读时间需要 1 分钟。

1.static

正常定位,就是默认定位,根据他的top,right,bottom,left的值

2.relative

根据他top,right,bottom,left的值偏移

3.absolute

不会给该元素预留位置,而是根据他的祖先元素定位,如果没有祖先元素则按初始放置,位置由top,right,bottom,left的值确定

4.fixed

直接按初始位置安放

5.sticky

static : 默认值。没有定位,元素出现在正常的流中(忽略 top, bottom, left, right 或者 z-index 声明)

转载于:https://www.cnblogs.com/fs-4394/p/9715947.html

你可能感兴趣的文章
运行Storm实例
查看>>
MapReduce各个执行阶段
查看>>
Shuffle过程详解
查看>>
微软云数据库SQL Azure
查看>>
Amazon DynamoDB
查看>>
云数据库概念
查看>>
云数据库与其他数据库的关系
查看>>
HBase 表和Region
查看>>
HBase功能组件
查看>>
UMP系统架构 RabbitMQ
查看>>
UMP系统架构 Mnesia
查看>>
UMP系统架构 Controller服务器
查看>>
UMP系统架构 Zookeeper
查看>>
HBase+Redis
查看>>
UMP系统架构 LVS
查看>>
Store工作原理
查看>>
HBase Ambari
查看>>
HLog工作原理
查看>>
构建HBase二级索引
查看>>
HBase Master-status
查看>>