使用 justify-content 屬性對齊 Flex 專案。您可以嘗試執行以下程式碼來實作 justify-content 屬性: 範例 即時示範 .mycontainer { display: flex; background-color: orange; justify-content: center; } .mycontainer > div { background-color: white; text-align: center; line-height: 40px; font-size: 25px; width: 100px; margin: 5px; } Quiz Q1 Q2 Q3 Q4 登入後複製