文章详情页
weex Android list cell标签盒模型margin是左右颠倒的?
浏览:35日期: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. index.php错误,求指点2. android - Windows系统下运行react-native App时,报下面的错误?3. 致命错误: Class ’appfacadeTest’ not found4. 关于mysql unique的问题,如图所示5. mysql - 要取出数据库中按某字段排序后的前10,20,30条数据要怎么做?6. android百度地图定位问题7. 网页爬虫 - python爬虫,需要爬取的数据没在网页源代码中,怎么处理?8. showpassword里的this 是什么意思?代表哪个元素9. c++ - pycharm 4.5 的 python -> preferences 找不到10. javascript - react-native在chrome调试工具中出现警告,并且不能使用react dev-tools
排行榜