字母大小写
属性控制文本的大小写
text-transform
capitalize文本中的每个单词以大写字母开头。
uppercase定义仅有大写字母。
lowercase定义无大写字母,仅有小写字母。
<div class="box1"></div>
css:
p {
font-size: 100px;
color: aqua;
}
p:first-child {
text-transform: capitalize;
}
p:nth-of-type(2) {
text-transform: uppercase;
}
p:last-child {
text-transform: lowercase;
}
评论
匿名评论
隐私政策
你无需删除空行,直接评论以获取最佳展示效果