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

list view的第一个和最后一个li的border能不能不要多出一截 #32

Closed
zhanghuanhuanlive opened this issue Nov 10, 2014 · 1 comment

Comments

@zhanghuanhuanlive
Copy link

为啥不和中间的li一样长短,去掉list上面和下面的阴影后看起来特别不协调。
另外为啥要用svg而不是border,是出于特殊的设计理念吗

@hbcui1984
Copy link
Contributor

mui的ui设计理念:以iOS7的ui为基础,补充部分Android平台特有的ui控件;而iOS 7的列表就是如此样式;
采用svg,而不是border的原因是,svg绘图类似于背景图,对布局无影响,若要使用border模拟,而左侧又要空白一个距离的话,只能使用margin/padding模拟,这样布局稍显复杂;

当然,你完全可以自定义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