文章详情页
weex Android list cell标签盒模型margin是左右颠倒的?
浏览:172日期:2024-08-13 15:51:00
问题描述
设置 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:你这两句代码,能写出这么多页面吗? 表示没有看的很明白。如果是css的问题,你可以试一下flexbox来解决一下布局的问题
相关文章:
1. docker不显示端口映射呢?2. python相关问题求解决,有偿3. javascript - vue2.0中使用vue2-dropzone的demo,vue2-dropzone的github网址是什么??百度不到。4. html5 - iOS的webview加载出来的H5网页,怎么修改html标签select的样式字体?5. javascript - 怎么用flatlist替换scrollview?6. jquery - css3 scale 缩放图片问题7. android - 安卓activity无法填充屏幕8. node.js - 如何调用hexo渲染 ``` ``` 代码块的渲染引擎9. node.js - nodejs+express+vue10. javascript - 使用webStorm通过git提交代码push时报错
排行榜

网公网安备