1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- * {
- /* margin: 0;
- padding: 0; */
- box-sizing: border-box;
- }
- div {
- width: 200px;
- height: 200px;
- font-size: 30px;
- font-weight: bold;
- color: #fff;
- }
- .box1 {
- margin-top: 15px;
- background: #0f0;
- }
- .box2 {
- margin-top: 15px;
- background: #0ff;
- /* position: fixed; */
- /* top: 215px; */
- /* left: 400px; */
- }
- .box3 {
- margin-top: 15px;
- background: #ff0;
- /* position: sticky;
- top: 40px; */
- }
- .box4 {
- margin-top: 15px;
- background: #f00;
- /* position: static; */
- /* position: relative;
- left: 100px;
- top: 100px; */
- position: absolute;
- top: 100px;
- z-index:3;
- }
- .box5 {
- margin-top: 15px;
- background: pink;
- /* position: relative; */
- }
- .box6 {
- margin-top: 15px;
- background: #00f;
- }
- .box7 {
- margin-top: 15px;
- background: orange;
- }
- .box8 {
- margin-top: 15px;
- background: orange;
- }
- .box9 {
- margin-top: 15px;
- background: orange;
- position: absolute;
- top: 100px;
- z-index: 99;
- }
- #box {
- width: 800px;
- height: 100%;
- border: 2px solid #00f;
- position: relative;
- margin-top: 300px;
- background-color: rgb(215, 37, 255);
- }
|