• <tfoot id='TMuWF'></tfoot>

    <small id='TMuWF'></small><noframes id='TMuWF'>

    • <bdo id='TMuWF'></bdo><ul id='TMuWF'></ul>

      <legend id='TMuWF'><style id='TMuWF'><dir id='TMuWF'><q id='TMuWF'></q></dir></style></legend>
      <i id='TMuWF'><tr id='TMuWF'><dt id='TMuWF'><q id='TMuWF'><span id='TMuWF'><b id='TMuWF'><form id='TMuWF'><ins id='TMuWF'></ins><ul id='TMuWF'></ul><sub id='TMuWF'></sub></form><legend id='TMuWF'></legend><bdo id='TMuWF'><pre id='TMuWF'><center id='TMuWF'></center></pre></bdo></b><th id='TMuWF'></th></span></q></dt></tr></i><div id='TMuWF'><tfoot id='TMuWF'></tfoot><dl id='TMuWF'><fieldset id='TMuWF'></fieldset></dl></div>

      1. 如何在ionic 3中进行水平滚动

        时间:2023-09-08

        • <bdo id='hGsBL'></bdo><ul id='hGsBL'></ul>
          <legend id='hGsBL'><style id='hGsBL'><dir id='hGsBL'><q id='hGsBL'></q></dir></style></legend>
              <tbody id='hGsBL'></tbody>

              1. <tfoot id='hGsBL'></tfoot>
              2. <small id='hGsBL'></small><noframes id='hGsBL'>

                  <i id='hGsBL'><tr id='hGsBL'><dt id='hGsBL'><q id='hGsBL'><span id='hGsBL'><b id='hGsBL'><form id='hGsBL'><ins id='hGsBL'></ins><ul id='hGsBL'></ul><sub id='hGsBL'></sub></form><legend id='hGsBL'></legend><bdo id='hGsBL'><pre id='hGsBL'><center id='hGsBL'></center></pre></bdo></b><th id='hGsBL'></th></span></q></dt></tr></i><div id='hGsBL'><tfoot id='hGsBL'></tfoot><dl id='hGsBL'><fieldset id='hGsBL'></fieldset></dl></div>
                  本文介绍了如何在ionic 3中进行水平滚动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  看看我的

                  我在 ion-scroll 中有 10 个名字,但它会像段落一样进入下一行.

                  这是我的 .html 代码.

                  这是我的css

                  .headerChipGray{ion-chip.chip.chip-md{边距:2px 2px 2px 2px;边框半径:10px;边框:1px 纯灰色;背景:白色;}ion-chip.chip.chip-ios{边距:2px 2px 2px 2px;边框半径:10px;边框:1px 纯灰色;背景:白色;}}.headerChipGreen{ion-chip.chip.chip-md{边距:2px 2px 2px 2px;边框半径:10px;背景:白色;颜色:#A80C50;边框:1px 实心#A80C50;}ion-chip.chip.chip-ios{边距:2px 2px 2px 2px;边框半径:10px;背景:白色;颜色:#A80C50;边框:1px 实心#A80C50;}}

                  <块引用>

                  更新到 ionic 3 后,这段代码曾在 ionic 2 中工作,我正面临这个问题,我缺少用于 ion-scroll 的 ionic doc

                  解决方案

                  看起来像 ion-row 在你的卷轴内包裹着物品.

                  尝试使用 nowrap 属性.

                  <块引用>

                  添加 flex-wrap: nowrap.将列强制为单行.

                  look at my

                  I have 10 names in the ion-scroll but it is coming to the next line like a paragraph.

                  here is my .html code.

                  <ion-scroll scrollX="true" style="width:100vw; height:50px" >
                          <ion-row class="headerChip">
                            <div *ngFor="let tabName of product_type; let idx = index" [ngClass]="showSelectedTabArray[idx].showSelectedTab ? 'headerChipGray' : 'headerChipGreen'">
                            <ion-chip  (click)="changeData(tabName)">
                            <ion-label  >{{tabName.languagename}}</ion-label>
                            <div></div>
                            </ion-chip>
                            </div>
                          </ion-row>
                        </ion-scroll>
                  

                  here is my css

                  .headerChipGray{
                      ion-chip.chip.chip-md{
                          margin: 2px 2px 2px 2px;
                          border-radius: 10px;
                          border: 1px solid gray;
                          background: white;
                      }
                      ion-chip.chip.chip-ios{
                          margin: 2px 2px 2px 2px;
                          border-radius: 10px;
                          border: 1px solid gray;
                          background: white;
                      }
                  }
                  
                  .headerChipGreen{
                  
                      ion-chip.chip.chip-md{
                          margin: 2px 2px 2px 2px;
                          border-radius: 10px;
                          background: white;
                          color: #A80C50;
                          border: 1px solid #A80C50;
                      }
                  
                      ion-chip.chip.chip-ios{
                          margin: 2px 2px 2px 2px;
                          border-radius: 10px;
                          background: white;
                          color: #A80C50;
                          border: 1px solid #A80C50;
                      }
                  }
                  

                  this same piece of code used to work in ionic 2 after updating to ionic 3 i am facing this issue what i am missing ionic doc for ion-scroll

                  解决方案

                  It looks like ion-row within your scroll is wrapping the items.

                  Try using nowrap attribute.

                  Adds flex-wrap: nowrap. Forces the columns to a single row.

                  <ion-scroll scrollX="true" style="width:100vw; height:50px" >
                    <ion-row nowrap class="headerChip">
                      <div *ngFor="let tabName of product_type; let idx = index" [ngClass]="showSelectedTabArray[idx].showSelectedTab ? 'headerChipGray' : 'headerChipGreen'">
                      <ion-chip  (click)="changeData(tabName)">
                      <ion-label  >{{tabName.languagename}}</ion-label>
                      <div></div>
                      </ion-chip>
                      </div>
                    </ion-row>
                  </ion-scroll>
                  

                  这篇关于如何在ionic 3中进行水平滚动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                    <tbody id='oKE8j'></tbody>

                  <tfoot id='oKE8j'></tfoot>

                  1. <legend id='oKE8j'><style id='oKE8j'><dir id='oKE8j'><q id='oKE8j'></q></dir></style></legend>

                    <small id='oKE8j'></small><noframes id='oKE8j'>

                    • <i id='oKE8j'><tr id='oKE8j'><dt id='oKE8j'><q id='oKE8j'><span id='oKE8j'><b id='oKE8j'><form id='oKE8j'><ins id='oKE8j'></ins><ul id='oKE8j'></ul><sub id='oKE8j'></sub></form><legend id='oKE8j'></legend><bdo id='oKE8j'><pre id='oKE8j'><center id='oKE8j'></center></pre></bdo></b><th id='oKE8j'></th></span></q></dt></tr></i><div id='oKE8j'><tfoot id='oKE8j'></tfoot><dl id='oKE8j'><fieldset id='oKE8j'></fieldset></dl></div>
                        <bdo id='oKE8j'></bdo><ul id='oKE8j'></ul>