Input & Select line-height and padding performing the same
See original GitHub issueriddleId: 140128f5
希望 input 和 select 的 line-height 和 padding 表现情况一致,也就是在
{ this.state.input
? <Input />
: <Select />
}
切换的时候,没有位移和闪烁
Issue Analytics
- State:
- Created 7 years ago
- Comments:14 (13 by maintainers)
Top Results From Across the Web
CSS: making the select field width and height same as all ...
problem is with padding when you are removing the padding width of inputs are same.Otherwise you can use box-sizing.When use this padding ......
Read more >line-height - CSS: Cascading Style Sheets - MDN Web Docs
The line-height CSS property sets the height of a line box. It's commonly used to set the distance between lines of text.
Read more >How to Tame Line Height in CSS
In CSS, line-height is probably one of the most misunderstood, ... This removes the margin and padding from every single element.
Read more >Design Museum Shop
button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; } /** * Address Firefox 4+ setting `line-height` on `input` using `!important` in ...
Read more >Selection Box Height Not Equal to Textboxes - HTML & CSS
IE has a fixed extra px padding overwhich you have no control, ignores height and obeys line-height. FF has extra EM padding you...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
7 到 8 没有回滚。https://github.com/ant-design/ant-design/commit/f0a4afd388e0f85da5d4715c7a2494ed3dfff7a7
用了一个 chrome-only 的 hack 搞定。