Is the margin of the weex Android list cell label box model upside down?
大家讲道理
大家讲道理 2017-05-24 11:38:17
0
1
760

Set the margin-left value of the cell element below the list element, and the actual display effect is the margin-right value;

<list style="background-color:red; padding-left:32px;">
    <cell style="height:50px; margin-left:32px; background-color:green;"></cell>
</list>

The left side is the padding-left of the list, and the right side is the margin-left of the cell;
Viewed through the coordinate function of the playground app, it is found that the values ​​of width and height are reversed, that is: width is displayed as height value, and the height value is displayed as the width value.
Mobile phone model: Huawei Honor 6, Android version 4.4.2

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(1)
Peter_Zhu

Can you write so many pages with these two lines of code? He said he didn't see it clearly. If it is a css problem, you can try flexbox to solve the layout problem

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!