Zurb Foundation 的“small-text-center”正在覆盖所有断点处的“text-left”
Zurb Foundation's `small-text-center` is overwriting `text-left` at all breakpoints
我有一个带有 2 类 的元素:
<div class="text-left small-text-center">
这正在使用 Foundation's Typography Helper classes。在小屏幕上,文本应该居中,但在大屏幕上,文本应该靠左。但是,无论屏幕大小如何,它似乎总是居中。
有人知道这里出了什么问题吗?
这是我的错。我误读了这行:
Adding a breakpoint to the front of a text alignment class will cause it to only be applied on that size screen or larger
因此,得到我想要的结果:
<div class="medium-text-left text-center">
我有一个带有 2 类 的元素:
<div class="text-left small-text-center">
这正在使用 Foundation's Typography Helper classes。在小屏幕上,文本应该居中,但在大屏幕上,文本应该靠左。但是,无论屏幕大小如何,它似乎总是居中。
有人知道这里出了什么问题吗?
这是我的错。我误读了这行:
Adding a breakpoint to the front of a text alignment class will cause it to only be applied on that size screen or larger
因此,得到我想要的结果:
<div class="medium-text-left text-center">