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

搜索框样式问题 #2218

Closed
duankt opened this issue Jan 5, 2018 · 9 comments
Closed

搜索框样式问题 #2218

duankt opened this issue Jan 5, 2018 · 9 comments

Comments

@duankt
Copy link

duankt commented Jan 5, 2018

版本2.1.3
清空图标在上面没有居中,提示字“北京”当光标在搜索框中后,只能显示“北”

@ant-design-bot
Copy link

It will be better to write your issue/comment in English, so more people can understand you.
And this means that more people can help you or benefit from your issue/comment.
See: ant-design/ant-design#4897

@duankt
Copy link
Author

duankt commented Jan 5, 2018

image

image

@paranoidjk
Copy link
Contributor

官方 demo 正常,给出可复现的例子。https://mobile.ant.design/components/search-bar-cn/

@ant-design-bot
Copy link

Hello @duankt. Please provide a re-producible demo: https://codepen.io/pen?template=LWpaKe&editors=0010

@duankt
Copy link
Author

duankt commented Jan 5, 2018

百度云盘中下载解决方案,VS中直接调试运行就可以
链接:https://pan.baidu.com/s/1jHPu9E2 密码:1sp1

@paranoidjk
Copy link
Contributor

并没有 visual studio 调试环境,请给出简单可复现的 demo。

@duankt
Copy link
Author

duankt commented Feb 8, 2018

@paranoidjk 简单的demo不会有问题,关键就是dotnet core这种react环境下会有问题,可能是组件包版本问题

@duankt
Copy link
Author

duankt commented Mar 26, 2018

已经找到问题根源,是因为有个全局的CSS样式的问题,webkit-box-sizing: border-box;
box-sizing: border-box;可以去掉这两个就行啦,

@paranoidjk paranoidjk reopened this Mar 26, 2018
@warmhug
Copy link
Contributor

warmhug commented May 8, 2018

close for #2510 #2447

@warmhug warmhug closed this as completed May 8, 2018
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

4 participants