时间:2021-07-01 10:21:17 帮助过:34人阅读
#DD{ position: relative; top: 0px; left: 0px; width: 500px; height: 300px; overflow: hidden;}#A1{ position: relative; width: 100%; height: 100%; padding-bottom: 50px; background-color: #F00;}#A2{ position: relative; width: 100%; height: 100%; border-bottom: solid 50px #000000; background-color: #F00;}#B{ position: relative; top: 0px; left: 0px; width: 100%; height: 100%; overflow-x:hidden; overflow-y:auto; background-color: #00F;}
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 1
页面刚打开是不对的,但是切换一下页面又对了
把span标签换成div,span是内联元素,不能定义block元素的属性