久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

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

        <bdo id='CARC4'></bdo><ul id='CARC4'></ul>
      <tfoot id='CARC4'></tfoot>
      <i id='CARC4'><tr id='CARC4'><dt id='CARC4'><q id='CARC4'><span id='CARC4'><b id='CARC4'><form id='CARC4'><ins id='CARC4'></ins><ul id='CARC4'></ul><sub id='CARC4'></sub></form><legend id='CARC4'></legend><bdo id='CARC4'><pre id='CARC4'><center id='CARC4'></center></pre></bdo></b><th id='CARC4'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='CARC4'><tfoot id='CARC4'></tfoot><dl id='CARC4'><fieldset id='CARC4'></fieldset></dl></div>
    1. <small id='CARC4'></small><noframes id='CARC4'>

      如何在 Ionic 2 中定位彈出框

      How to position a popover in Ionic 2(如何在 Ionic 2 中定位彈出框)

        1. <tfoot id='uEQub'></tfoot>
            <tbody id='uEQub'></tbody>

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

          • <legend id='uEQub'><style id='uEQub'><dir id='uEQub'><q id='uEQub'></q></dir></style></legend>
              <bdo id='uEQub'></bdo><ul id='uEQub'></ul>
                <i id='uEQub'><tr id='uEQub'><dt id='uEQub'><q id='uEQub'><span id='uEQub'><b id='uEQub'><form id='uEQub'><ins id='uEQub'></ins><ul id='uEQub'></ul><sub id='uEQub'></sub></form><legend id='uEQub'></legend><bdo id='uEQub'><pre id='uEQub'><center id='uEQub'></center></pre></bdo></b><th id='uEQub'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='uEQub'><tfoot id='uEQub'></tfoot><dl id='uEQub'><fieldset id='uEQub'></fieldset></dl></div>
                本文介紹了如何在 Ionic 2 中定位彈出框的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                如何在 Ionic 2 中手動定位彈出框?

                How do I manually position a popover in Ionic 2?

                我無法在 css 類中設置位置,因為彈出框控制器使用內聯樣式設置位置.

                I can't set the position in a css class, since the popover controller sets the position with an inline style.

                推薦答案

                查看代碼,彈出框的位置似乎沒有選項.但是,當由于用戶點擊某物而打開彈出框時,它可以通過點擊事件定位.我們也可以將這些知識用于手動定位:

                Looking through the code, there doesn't seem to be an option for the popover's position. However, when opening the popover as a result of the user tapping something, it can be positioned by the click event. We can use that knowledge for manual positioning as well:

                let pop = this.popoverCtrl.create(MyPopover);
                
                let ev = {
                  target : {
                    getBoundingClientRect : () => {
                      return {
                        top: 100
                      };
                    }
                  }
                };
                
                pop.present({ev});
                

                需要注意的幾點:

                • 您可以設置 topleft 或兩者的值.
                • 值必須以像素為單位,如數字.
                • 如果 topleft 沒有給出,那么通常的定位算法將用于該值.
                • You can set the value for top, left, or both.
                • The values must be given in pixels, as numbers.
                • If top or left is not given, then the usual positioning algorithm is used for that value.

                我很高興知道是否有更好的方法,但到目前為止這是我能想到的最好方法.

                I'd be happy to know if there's a better way, but so far this is the best I could come up with.

                這當然適用于 Ionic2 和 3,很高興有人確認它是否也適用于 Ionic4!

                This certainly works in Ionic2 and 3, happy to have someone confirm if it works in Ionic4 as well!

                這篇關于如何在 Ionic 2 中定位彈出框的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                相關文檔推薦

                Use IScroll in Angular 2 / Typescript(在 Angular 2/Typescript 中使用 IScroll)
                anime.js not working in Ionic 3 project(Anime.js 在 Ionic 3 項目中不起作用)
                Ionic 3 - Update Observable with Asynchronous Data(Ionic 3 - 使用異步數據更新 Observable)
                Angular 2: file not found on local .json file(Angular 2:在本地 .json 文件中找不到文件)
                In Ionic 2, how do I create a custom directive that uses Ionic components?(在 Ionic 2 中,如何創建使用 Ionic 組件的自定義指令?)
                Use ViewChild for dynamic elements - Angular 2 amp; ionic 2(將 ViewChild 用于動態元素 - Angular 2 amp;離子2)
                  <tbody id='h2kdY'></tbody>

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

                    <legend id='h2kdY'><style id='h2kdY'><dir id='h2kdY'><q id='h2kdY'></q></dir></style></legend>

                        <bdo id='h2kdY'></bdo><ul id='h2kdY'></ul>
                        1. <tfoot id='h2kdY'></tfoot>
                          <i id='h2kdY'><tr id='h2kdY'><dt id='h2kdY'><q id='h2kdY'><span id='h2kdY'><b id='h2kdY'><form id='h2kdY'><ins id='h2kdY'></ins><ul id='h2kdY'></ul><sub id='h2kdY'></sub></form><legend id='h2kdY'></legend><bdo id='h2kdY'><pre id='h2kdY'><center id='h2kdY'></center></pre></bdo></b><th id='h2kdY'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='h2kdY'><tfoot id='h2kdY'></tfoot><dl id='h2kdY'><fieldset id='h2kdY'></fieldset></dl></div>

                        2. 主站蜘蛛池模板: 亚洲欧美日韩电影 | 亚洲精选久久 | 国产精品久久久久久久久久 | 国产成人aⅴ | 亚洲在线久久 | 欧美日韩不卡在线 | 国产色网站 | 日韩免费高清视频 | 国产成年人小视频 | 日韩中文字幕一区二区 | 国产一伦一伦一伦 | 精品国产乱码久久久久久丨区2区 | 最新中文字幕在线播放 | 中国黄色在线视频 | 国产精品久久久久久妇女6080 | 国产精品久久久久久婷婷天堂 | 尤物视频在线免费观看 | 九九99靖品 | 国产日韩欧美一区二区 | 精品国产一区探花在线观看 | 国产精品久久久久久久久污网站 | 欧美亚洲另类丝袜综合网动图 | 99热精品在线 | 久久精品一区二区 | 久久综合久 | 久久精品亚洲精品国产欧美 | 日韩一区二区av | 国产色99精品9i | 久久国内精品 | 成人欧美一区二区三区黑人孕妇 | av在线播放一区二区 | 国产精品一区二区在线播放 | .国产精品成人自产拍在线观看6 | 日本高清视频网站 | 永久免费在线观看 | 中国av在线免费观看 | 精品乱码一区二区 | 一区二区三区四区av | 午夜国产一级 | 欧美久久久久久 | 中文字幕一区二区三区不卡 |