CSS个人整理 Static 静态定位(默认)从上到下 从左到右 123.box{ position: static} Relative 相对定位12345.box2{ position: relative; left: 15px; top:15px;} Absolute 绝对定位12345.box3{ position: Absolute; left: 15px; top:15px;} Fixed 固定定位123456.footer{ position: fixed; bottom: 0; left:0; right:0;} Sticky 粘性定位123456.footer{ position: fixed; bottom: 0; left:0; right:0;}