Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

内容详情页遇到问题 #22

Open
zhongfei246 opened this issue Oct 28, 2016 · 2 comments
Open

内容详情页遇到问题 #22

zhongfei246 opened this issue Oct 28, 2016 · 2 comments

Comments

@zhongfei246
Copy link

你好!我按照你的代码学习的,但是DailyContent.js页面展示的效果不对,具体表现是:文字有重叠现象,即好几行文字摞在一起了(我把你的整个DailyContent.js代码都粘贴上去还是那样,我怀疑是node_modules中相关依赖文件的问题)。请指教。谢谢!
image

@poberwong
Copy link
Owner

你有没有发现一个问题,itemContainer 这个style里边有一个flex: 1, 这意味着在整个列表里,它被均分了。去掉这个flex应该会修复... ListView也有类似的问题,item布局里不要用flex,否则每个条目的高度都会因为这个而均分.

@zhongfei246
Copy link
Author

抱歉,前两天较忙忘记看github了。非常感谢!就是这个问题!但是为啥我直接拷贝你的CSS样式还是会出现上面的问题,而你的没有那样的问题?谢谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants