【发布时间】:2020-05-01 00:57:20
【问题描述】:
我有标签部分。单击选项卡时,其子内容会出现在带有 CSS 的部分
position: absolute;
z-index: 9999;
top: 0;
left: 0;
height: 250px;
overflow: scroll;
但似乎子元素不可滚动。
【问题讨论】:
我有标签部分。单击选项卡时,其子内容会出现在带有 CSS 的部分
position: absolute;
z-index: 9999;
top: 0;
left: 0;
height: 250px;
overflow: scroll;
但似乎子元素不可滚动。
【问题讨论】:
请提及Overflow-x 或y 轴,不要使用overflow:scroll;使用溢出:隐藏;
.abc {
height:100px;
overflow-x:hidden;}
<div class="abc">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</div>
【讨论】: