【问题标题】:How can i put Scroll in a specific<div>如何将 Scroll 放入特定的<div>
【发布时间】:2016-09-29 19:02:02
【问题描述】:

我正在尝试在我的页面或特定的 .

我在 primefaces 中有一个普通页面,我需要以水平方式放置,如何将滚动放置在包含表单的特定 div 中?

编辑1:

<div class="col-md-1" style="overflow-x:scroll; width:2000px">
  <div class="row">
    <p:fieldset>
      <campo:simples label="Data Referencia" />
      <div class="col-md-2">
        <div class="row">
          <campo:radio enumClass="TipoTituloEnum" label="Situação" tamanho="1" tamanhoTotal="1" columns="1" layout="grid">
          </campo:radio>
        </div>
      </div>
    </p:fieldset>
  </div>
</div>

我试试这个^^但没有出现滚动 Edit2:滚动出现,但已禁用

Look ^^ the component overflow the screen but the scroll didn't appear

【问题讨论】:

标签: html css


【解决方案1】:

使用overflow-x:auto 就可以了

.col-md-1{
   overflow-x:scroll;
}
//If you don't want disabled scroll bar 
.col-md-1{
   overflow-x:auto;
}

【讨论】:

猜你喜欢
  • 2020-01-13
  • 1970-01-01
  • 1970-01-01
  • 2021-02-13
  • 2023-03-15
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多