Screen { align: center bottom; } #main_container { align: center middle; width: 95%; height: auto; border: thick $primary-lighten-2; padding: 2; } #vice_container { align: center middle; width: 95%; height: auto; padding: 2; } #sentence { content-align: center middle; width: 100%; height: 5; margin-bottom: 2; text-style: bold; } #progress { width: 100%; content-align: center middle; margin-bottom: 1; color: $text-muted; } Button { align-horizontal: center; width: 50%; margin: 0 0; } .choice { align-horizontal: center; width: 50%; margin: 0 0; height: auto; } /* no_margin.tcss */ #button_container { align-horizontal: center; height: 9; } /* 选中 #button_container 下所有的 Horizontal 子元素 */ #button_container > Horizontal { margin-top: 0; margin-bottom: 0; align-horizontal: center; width: 40%; }