weex Android list cell标签盒模型margin是左右颠倒的?
大家讲道理
大家讲道理 2017-05-24 11:38:17
0
1
762

设置 list 元素下面的 cell 元素的 margin-left 值,结果实际展现效果是 margin-right值;

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

左侧是list的padding-left,右侧是 cell 的margin-left;
通过 playground app 的坐标功能查看,发现 width 和 height 的值都是对调的,即:width显示成了height值,而height值显示成了width值。
手机型号:华为荣耀6,安卓版本 4.4.2

大家讲道理
大家讲道理

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

全部回复(1)
Peter_Zhu

你这两句代码,能写出这么多页面吗? 表示没有看的很明白。如果是css的问题,你可以试一下flexbox来解决一下布局的问题

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责声明 Sitemap
PHP中文网:公益在线PHP培训,帮助PHP学习者快速成长!