开发者

What is the significance of the 'x-phone' styling rule for sencha touch?

开发者 https://www.devze.com 2023-03-29 12:22 出处:网络
Here is the css I am reading: .card { font-size: 72px; 开发者_StackOverflow社区padding: 80px 40px;

Here is the css I am reading:

 .card {
        font-size: 72px;
     开发者_StackOverflow社区   padding: 80px 40px;
    }

    .x-phone .card {
        padding: 15px;
        font-size: 36px;
    }

What is the significance of x-phone? I am guessing, and this is a pure guess, that the css is saying, for the case a mobile device is detected, overide the .card styling class rule with .x-phone .card styling rule?

Is that correct? I searched the sencha touch api and google with no answer.

Thanks


If you look at body-tag's classes and change User Agent strings, you can see that it will change the class between x-desktop, x-phone and x-tablet.

So yes, it will override .card's styles when on phone.

0

精彩评论

暂无评论...
验证码 换一张
取 消