<html><head> <style type="text/css"> *{ padding: 0; margin: 0; } body :first-child{ position: absolute;left: 200px;width: 100px;height: 100px;top: 200px;background-color: blue; } body :empty{ position: absolute;left: 200px;width: 100px;height: 100px;top: 200px;background-color: red;z-index: 50px } body :last-child{ position: absolute;left: 200px;width: 100px;height: 100px;top: 200px;background-color: green; } </style></head><body> <div>1</div> <div></div> <div>2</div></body></html>chrome F12显示这样
- 3 回答
- 0 关注
- 1561 浏览
相关问题推荐
添加回答
举报
0/150
提交
取消