text-align
属性text-align
。 text-align: justify;
导致除最后一行之外的所有文本行都与行框的左右边缘相交。 text-align: center;
文本text-align: right;
右对齐文本和text-align: left;
(默认值)左对齐文本。 h4
标签的文本(称为“Google”)与中心对齐。然后证明段落标记是合理的,其中包含有关Google如何成立的信息。 h4
标记上的text-align属性将其设置为居中。
testString: 'assert($("h4").css("text-align") == "center", "Your code should use the text-align property on the h4
tag to set it to center.");'
- text: 您的代码应使用p
标记上的text-align属性将其设置为对齐。
testString: 'assert($("p").css("text-align") == "justify", "Your code should use the text-align property on the p
tag to set it to justify.");'
```
Google was founded by Larry Page and Sergey Brin while they were Ph.D. students at Stanford University.