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
1. Location regular expression Let's take a l...
Table of contents What is a listener in vue Usage...
Aggregating data from various sources allows the ...
Table of contents Preface 1. Usage examples 2. Im...
For example, he enters: XML/HTML Code div#page>...
Vue parent component calls the function of the ch...
Linux basic configuration Compile and install pyt...
MySQL string concatenation, interception, replace...
HTML web page hyperlink tag learning tutorial lin...
Table of contents What is Docker Client-side Dock...
We are not discussing PHP, JSP or .NET environmen...
On Unix-like systems, you may know when a command...
Table of contents Preface What is data binding? T...
CSS3 achieves cool 3D rotation perspective 3D ani...
Why do we need to build a nexus private server? T...