question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Input & Select line-height and padding performing the same

See original GitHub issue

riddleId: 140128f5

希望 input 和 select 的 line-height 和 padding 表现情况一致,也就是在

{ this.state.input
  ? <Input />
  : <Select />
}

切换的时候,没有位移和闪烁

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:14 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
afc163commented, Feb 22, 2017

用了一个 chrome-only 的 hack 搞定。

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found