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: Front-end: jq+h5 to achieve the nine-gri...
Table of contents 1. v-if 2. Use v-if on <temp...
The simplest application of store in Vue is globa...
This article example shares the specific code of ...
Installation The required documents are provided ...
Table of contents introduction 1. Overall archite...
background If the catalina.out log file generated...
Preface: Recently I am going to team up with my p...
Scenario Description In a certain system, the fun...
Table of contents 1. mixin.scss 2. Single file us...
It is difficult to find good image material websi...
Table of contents Integrity constraints Definitio...
This article shares the specific code of node+soc...
Preface Sometimes when hover pseudo-class adds a ...
Read-only and disabled attributes in forms 1. Rea...