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

select组件的下拉选项的宽度的宽度建议 #497

Open
bjlxj2008 opened this issue Jul 9, 2015 · 1 comment
Open

select组件的下拉选项的宽度的宽度建议 #497

bjlxj2008 opened this issue Jul 9, 2015 · 1 comment

Comments

@bjlxj2008
Copy link
Contributor

select组件的下拉选项的宽度是不是应该设置一个mini-width,并且自适应选项文字的长度(目前来看如果选项文字过长的话,发生折行现象),可以参考下bootstrap中的dropdown

@otakustay
Copy link
Member

我理解应该这样:

  1. 最小宽度与main一样,即下拉的层至少也和主元素一样宽
  2. 有个max-width,总不能字长到几千px也行
  3. 内部文字不折行,用省略号

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