Home > front end >  IQ is not online seek knowledge
IQ is not online seek knowledge

Time:09-19


Don't know why to always can't display text, to achieve the effect of FIG. 3, before such code and use, don't know why don't show this time, and don't know how words should be positioned in the x, y axis are centered on the right position, begged bosses give advice or comments,

CodePudding user response:

According to the F12 test under check

CodePudding user response:


Code is the same as you so you look at the f12 check element, I took a look at your code carefully again and style tags do not have closed & lt;/style>

CodePudding user response:

refer to the second floor of a class name is reply:

Code is the same as you so you look at the f12 check element, I took a look at your code carefully again and style tags do not have closed & lt;/style>

Is really no style , that how can let the words appeared in the middle of the red part

CodePudding user response:

Many methods can use positioning, also can add the line to h1 tags - height, can also use the flex layout

CodePudding user response:

Using flex layout, vertical center:
Display: - its - flex; Safari/* */
display: flex;
The flex - flow: row nowrap;
justify-content:center;
align-items:center;
  • Related