text-center
添加到我们的h2
元素中。请记住,您可以通过用空格分隔每个类来为同一个元素添加几个类,如下所示: <h2 class="red-text text-center">your text</h2>
text-center
应该使h2
元素居中
testString: 'assert($("h2").hasClass("text-center"), "Your h2
element should be centered by applying the class text-center
");'
- text: 您的h2
元素仍应具有类red-text
testString: 'assert($("h2").hasClass("red-text"), "Your h2
element should still have the class red-text
");'
```
Click here for cat photos.
Things cats love:
Top 3 things cats hate: