-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[css] 第41天 怎么让英文单词的首字母大写? #153
Comments
.demo {
text-transform: capitalize;
} |
楼上用的没问题,学习嘛,那我就来扩展一下。
/* Keyword values */
text-transform: capitalize;
text-transform: uppercase;
text-transform: lowercase;
text-transform: none;
text-transform: full-width; capitalize uppercase lowercase none full-width (实验性属性值) 除了以上,还有一些基本上不会用到的默认值等,就不多说了。 /* Global values */
text-transform: inherit;
text-transform: initial;
text-transform: unset; |
补充楼上的: .demo::first-letter {
text-transform: uppercase;
} |
@tzjoke 你这个是第一行文字的第一个字母大写。 |
text-transform:capitalize; |
.demo::first-letter { |
text-transform:capitalize; |
function test(str){ |
|
.cap{ |
第41天 怎么让英文单词的首字母大写?
The text was updated successfully, but these errors were encountered: