国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

Warum funktioniert mein Flexbox-CSS nicht richtig?
P粉805535434
P粉805535434 2024-02-03 22:23:08
0
1
472

Warum funktioniert display:flex nicht in meinem CSS-Code? Ich m?chte, dass sich dieser Teil meines HTML-Codes in der Mitte der Seite befindet.

body {
  margin: 0;
  display: flex auto 0 1;
  justify-content: center;
  height: 100vh;
}
<form class="form" id="form"></form>
<h4 class="score" id="score">score :0</h4>
<h1 id="Question">What is 1 multiply by 1?</h1>
<input type="text" class="input" id="input" placeholder="Enter your answer" autofocus autocomplete="off">
<button type="submit" class="btn">submit</button>

P粉805535434
P粉805535434

Antworte allen(1)
P粉639667504

flex auto 0 1display 的無效屬性值。您的瀏覽器的文檔檢查器將向您顯示這一點(diǎn)。您需要在 displayflex 屬性中分隔這些值。

我懷疑您還想要 flex-direction: column,但我會將其留給您。

body {
  margin: 0;
  display: flex;
  flex: auto 0 1;
  justify-content: center;
  height: 100vh;
}

score :0

What is 1 multiply by 1?

Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage