Putting input and img on the same line, the img tag is always one head higher than the input, which is very ugly. I have tried many methods before, but none of them worked. Later, the most common solution I found on the website was to add an align="absmiddle" attribute to img. This method does seem to be feasible, but it does not comply with HTML standards. Later I accidentally discovered that adding vertical-align:middle to both input and img would work: Copy code The code is as follows:input,img{vertical-align:middle;} This way the code will be aligned horizontally. |
<<: Implementation steps for installing FTP server in Ubuntu 14.04
>>: Page Refactoring Skills - Content
Problem [root@zh ~]# [root@zh ~]# [root@zh ~]# yu...
Table of contents 1. Environment Configuration 1....
1. Download the software 1. Go to the MySQL offic...
What to do if you forget Windows Server 2008R2 So...
Table of contents Preface 1. Arrange the installa...
Failure Scenario When calling JDBC to insert emoj...
Table of contents 1. Process 2. Core Architecture...
Table of contents Single content projection Multi...
When insert into employee values(null,'張三'...
This article shares the specific code of JavaScri...
1. Use version vite:2.0 ant-design-vue: 2.0.0-rc....
MySQL reports an error when executing multi-table...
System tray icons are still a magical feature tod...
Install antd-mobile Global import npm install ant...
Data integrity is divided into: entity integrity,...