Line 9: | Line 9: | ||
display: grid; | display: grid; | ||
grid-template-rows: 60px; | grid-template-rows: 60px; | ||
− | grid-template-columns: | + | grid-template-columns: 50% 50%; |
text-align: center; | text-align: center; | ||
line-height: 60px; /*line-height的值应与grid-template-rows的值相等,用于垂直居中*/ | line-height: 60px; /*line-height的值应与grid-template-rows的值相等,用于垂直居中*/ |
Revision as of 09:29, 24 September 2018