As shown below: XML/HTML CodeCopy content to clipboard
Please note: #test *{vertical-align:middle;}s #test * represents all the elements in div, including inline elements such as span, input, and img. vertical-align Please note: vertical-align only affects inline elements, such as span, img, em, input, a, etc., but is invalid for block elements such as div, h3, p, etc. The above is all the content about the problem of vertical centering of img and span in div brought to you by the editor. I hope it will be helpful to you. Please support 123WORDPRESS.COM~ |
<<: 3 solutions to make your website support old versions of IE6, 7, 8, and 9 browsers
>>: Can asynchrony in JavaScript save await?
Preface In the daily development or maintenance o...
In the MySQL database, when we need fuzzy query, ...
1. Introduction I have taken over a project of th...
A master once said that you should know the datab...
TypeScript Bundling webpack integration Usually, ...
Table of contents Installing the SDK Managing loc...
1. Installation package preparation VMware-player...
Table of contents Preface text parameter example ...
<html> <head> <meta http-equiv=&quo...
1. Overview of viewport Mobile browsers usually r...
Get the current date + time (date + time) functio...
This article installs Google Input Method. In fac...
This article shares the installation and configur...
This article shares the specific code for JavaScr...
1. Download the gitlab image docker pull gitlab/g...