如何在Ionic Framework中自定义字体大小 [英] How to customize font size in 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屋!