--- id: 587d781c367417b2b2512ac0 title: Use the text-transform Property to Make Text Uppercase challengeType: 0 videoUrl: '' localeTitle: 使用text-transform属性使文本为大写 --- ## Description
CSS中的text-transform属性用于更改文本的外观。这是一种方便的方法,可确保网页上的文字始终如一,而无需更改实际HTML元素的文本内容。下表显示了不同的text-transform值如何更改示例文本“转换我”。
结果
lowercase “改变我”
uppercase “改变我”
capitalize “改变我”
initial 使用默认值
inherit 使用父元素的text-transform
none 默认值:使用原始文本
## Instructions
使用text-transform属性将h4text-transform为大写。
## Tests
```yml tests: - text: h4文本应为大写。 testString: 'assert($("h4").css("text-transform") === "uppercase", "The h4 text should be uppercase.");' - text: 不应更改h4的原始文本。 testString: 'assert(($("h4").text() !== $("h4").text().toUpperCase()), "The original text of the h4 should not be changed.");' ```
## Challenge Seed
```html

Alphabet


Google was founded by Larry Page and Sergey Brin while they were Ph.D. students at Stanford University.

```
## Solution
```js // solution required ```