Ionic:如何改变$ ionicPopup的宽度? [英] Ionic: How is it possible to change the width of $ionicPopup?

查看:518
本文介绍了Ionic:如何改变$ ionicPopup的宽度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试更改$ ionicPopup的宽度;我尝试使用以下css代码,将其导入 cssClass:my-popup

I'm trying to change the width of $ionicPopup; I've tried using the following css code, to import it onto cssClass: my-popup:

.my-popup {
      width: 400;
      }

但这似乎不起作用。

我真的被困在那里,目前无法找到解决方案。

I've really got stuck there, and currently unable to find a solution.

任何帮助都将不胜感激。谢谢。

Any help will be much appreciated. Thank you.

推荐答案

将以下内容放在src / theme / variables.scss文件中;

Place the following in the src/theme/variables.scss file;

$popover-ios-width: 300px;

这篇关于Ionic:如何改变$ ionicPopup的宽度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆