如何在Ionic Framework中自定义字体大小 [英] How to customize font size in Ionic Framework

查看:165
本文介绍了如何在Ionic Framework中自定义字体大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用离子框架(使用cordova)来开发移动应用程序。
我想要做的是增加字体大小(通常在我的应用程序中)。



我在官方文档中看到过:。我希望它对你有帮助。


I'm using ionic framework (with cordova) to develop mobile apps. What I want to do is to increase the font size (in general in my app).

I've seen that in the official documentation : http://ionicframework.com/tutorials/customizing-ionic-with-sass/. But I do not understand how to customize once sass is working.

I'm working in a tabs-based App like that : http://forum.ionicframework.com/uploads/default/269/9934610f0a08b8d2.png I tried to manually add a class on the tab, but the result is not very clean... the text is cropped...

Is there an official way to change the font-size ?

解决方案

I think you don't need to undersand everything on Sass. In your project directory, in

.../yourProject/www/lib/ionic/scss

There is a file named _variables.scss where you will see something like this : These are font-size variables, you just have to change these and then build the ionic css file. I suggest you to use https://prepros.io/. I hope it helped you.

这篇关于如何在Ionic Framework中自定义字体大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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