1. <tfoot id='QkKWg'></tfoot>
  2. <legend id='QkKWg'><style id='QkKWg'><dir id='QkKWg'><q id='QkKWg'></q></dir></style></legend>

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

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

    1. 像 Ionic 2 中的模态一样警报

      时间:2023-09-07
      <tfoot id='wiASN'></tfoot>

        • <legend id='wiASN'><style id='wiASN'><dir id='wiASN'><q id='wiASN'></q></dir></style></legend>

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

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

          • <bdo id='wiASN'></bdo><ul id='wiASN'></ul>
              <tbody id='wiASN'></tbody>

                本文介绍了像 Ionic 2 中的模态一样警报的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                问题描述

                我希望我的警报中有很多功能,所以我在一个模态中实现了所有的东西......现在我想将此模态切割为一个警报,例如不占用屏幕上的整个空间并在左侧的空间上显示 bg我们的模态.如下图所示

                I wanted many functionalities in my alert so i implemented all the things in a modal...now i want to cutomize this modal as an alert like not taking the whole space on the screen and showing the bg on the space left outsude our modal. as shown in the image below

                例如:你能告诉我如何在模态框之外实现,使它看起来像一个警报..在离子 2

                eg: can you tell me ow to implement outside the modal so that it looks like an alert.. in ionic 2

                请帮忙,谢谢

                推荐答案

                可以借助 scss 进行调整

                You can adjust this with the help of scss

                .modal-wrapper {
                    position: absolute;
                    width: 90%;
                    height: 65%; 
                    top: 20%;
                    left: 5%;
                  }
                

                您可以根据需要更改内容的宽度、高度、顶部和左侧.请注意,修改此值将使您的应用程序中的所有模态都使用此配置而不是默认模态.

                You can alter the content width, height, top and left as per your need. Kindly note that modifying this value will make all the modal in your application to use this configuration rather than the default modal.

                要以灰色显示背景,请使用以下代码

                To show the backdrop in grey color, use the below code

                @media not all and (min-height: 600px) and (min-width: 768px) {
                  ion-modal ion-backdrop {
                    visibility: visible;
                  }
                }
                

                这篇关于像 Ionic 2 中的模态一样警报的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                上一篇:如何使用 ionic2 框架创建或自定义 Toast 视图 下一篇:如何从 Ionic 2 中的后退按钮更改标签?

                相关文章

                最新文章

                  <bdo id='i0Uw9'></bdo><ul id='i0Uw9'></ul>

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

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

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