Code first, then text Copy code The code is as follows:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <style> div {width:500px; height:500px; margin:0 auto; border:#000 solid 1px;} label { display:inline-block; width:100px;border:#000 solid 1px;} input { border:#000 solid 1px;} </style> </head> <body> <div> <p><label>Account</label><input type="text" /></p> <p><label>Password</label><input type="text" /></p> <p> <label>Verification Code</label> <input type="text" /><img src="" width="100" height="20" /> </p> </div> </body> </html> The effect of opening Google is as follows ![]() The spacing between the label and input of the verification code is obviously larger than the above two. After removing the line break of the verification code and making it one line, the three input boxes are aligned. The reason is still unknown. PS: I have written before that img and input are not aligned. Just add vertical-align:middle to them. |
>>: Solution to index failure caused by MySQL implicit type conversion
Copy code The code is as follows: <div class=&...
This article example shares the specific implemen...
1. Environmental Description (1) CentOS-7-x86_64,...
In CSS files, sometimes you need to use background...
The installation method of MySQL5.7 rpm under Lin...
Table of contents What is the reason for the sudd...
Preface Nginx 's built-in module supports lim...
Development Pain Points During the development pr...
When we do CSS web page layout, we all know that i...
HTML Paragraph Paragraphs are defined by the <...
I searched a lot online and found that many of th...
Table of contents Preface 👀 Start researching 🐱🏍...
Sometimes you need to debug remotely in a server ...
Table of contents 1. What is Function Anti-shake?...
Rendering principle In the form element, there is...