Element UI version
2.13.1
OS/Browsers version
macbook pro 2015 / chrome 81.0.4044.122
Vue version
2.6.11
Reproduction Link
https://codepen.io/mablevi/pen/vYNReVy
Steps to reproduce
查看按钮和input的高度
附:在实际查看中,发现【.el-form-item__content】 有一个font-size: 14px的css属性导致了这个问题。改为font-size: 12px则可以解决此问题。
What is Expected?
高度一致
What is actually happening?
高度有2像素的偏差
2条答案
按热度按时间tct7dpnv1#
Translation of this issue:
Element UI version
2.13.1
OS/Browsers version
macbook pro 2015 / chrome 81.0.4044.122
Vue version
2.6.11
Reproduction Link
https://codepen.io/mablevi/pen/vYNReVy
Steps to reproduce
View the height of the button and input
Attachment: in the actual view, it is found that there is a CSS attribute of font size: 14px in. El form item [content] that causes this problem. Change to font size: 12px to solve this problem.
What is Expected?
Highly consistent
What is actually happening?
Deviation of the height of the measured pixel
ctzwtxfj2#
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.