If you want to set the horizontal center alignment of text, which of the following codes is correct?

If a developer wants to develop a page with a tab function, the developer can use the TabList component provided by HarmomyOS.

If you want to set the horizontal center alignment of text, which of the following codes is correct?
A . ohos:text_alignment=start
B . ohos:text_alignment=bottom
C . ohos:text_alignment=vertical_center
D . ohos:text_alignment=horizontal_center

Answer: D

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments