element [bug report] in the El form inline state, when the size value is set to small, the El button in the El form item has two pixel position offsets

knsnq2tg  于 7个月前  发布在  其他
关注(0)|答案(2)|浏览(240)

Element UI version

2.13.1

OS/Browsers version

macbook pro 2015 / chrome 81.0.4044.122

Vue version

2.6.11

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像素的偏差

tct7dpnv

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

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

展开查看全部
ctzwtxfj

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.

相关问题