Unit of measure nativescript css

I played arround with nativescript, and I see that it offers us the style of elements using css.

However, in the docs http://docs.nativescript.org/ui/styling.html, I did not mention anything about the unit of measure for css.

It works

.title {
    font-size: 30;
    horizontal-align: center;
    margin: 20;
}

And it does not work

.title {
    font-size: 30;
    horizontal-align: center;
    margin: 20px;
}

Note that in the second example, the margin is 20 pixels.

So my question is, when it comes to css, which block uses nativescript?

+4
source share
1 answer

, , ", " font-size Supported Properties, , NativeScript - , , , .

+2

Source: https://habr.com/ru/post/1622086/


All Articles