水平滚动条丢失

吉普车

我想显示水平滚动条。我已经使用过,overflow-x:scroll;但没有看到任何水平滚动条。请帮忙。

<div class="abc">
  <p>This is overflow-x scroll. This is overflow-x scroll. This is overflow-x scroll.</p>
</div>
.abc{
  overflow-x:scroll;
  width:1000px;
}

我的代码在这里

毛茸茸

根据您在jsbin中的代码,尝试执行以下操作:

.abc{
  overflow-x: auto;
  white-space: nowrap;
}

您可以将其中之一保留为必需的“自动”或“滚动”。
还有许多其他属性值,请在此处查看:http : //www.w3schools.com/cssref/pr_pos_overflow.asp

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章