1 第一步,双击打开HBuilder编辑工具,新建静态页面textTransform.html,如下图所示:2 第二步,在标签元素内,插入一个按钮和四个输入框,利用Bootstrap设置它们的样式,如下图所示:3 第三步,在jquery初始化函数内,编写按钮单击事件,分别设置三个输入框的文本属性,如下图所示:4 第四步,保存代码并预览该静...
text-transform: lowercase; } .text-uppercase { text-transform: uppercase; } .text-capitalize { text-transform: capitalize; } 1. 2. 3. 4. 5. 6. 7. 8. 9. Lowercased text. Uppercased text. Capitalized text. 1. 2. 3. 按钮和符号 【关闭按钮】 通过使用一个象征关闭的图标,可以让模态...
(property:text-decoration,values:noneunderlineline-through),"text-transform":(property:text-transform,class:text,values:lowercaseuppercasecapitalize),"white-space":(property:white-space,class:text,values:(wrap:normal,nowrap:nowrap,)),"word-wrap":(property:word-wrapword-break,class:text,values:(...
( property: text-decoration, values: none underline line-through ), "text-transform": ( property: text-transform, class: text, values: lowercase uppercase capitalize ), "white-space": ( property: white-space, class: text, values: ( wrap: normal, nowrap: nowrap, ) ), "word-wrap": (...
( property: text-decoration, values: none underline line-through ), "text-transform": ( property: text-transform, class: text, values: lowercase uppercase capitalize ), "white-space": ( property: white-space, class: text, values: ( wrap: normal, nowrap: nowrap, ) ), "word-wrap": (...
The text-transform property is used to specify uppercase and lowercase letters in a text.It can be used to turn everything into uppercase or lowercase letters, or capitalize the first letter of each word:Example p.uppercase { text-transform: uppercase;} p.lowercase { text-transform: ...
Text transform Transform text in components with text capitalization classes. Lowercased text. Uppercased text. CapiTaliZed text. Copy Lowercased text.Uppercased text.CapiTaliZed text. Note how.text-capitalizeonly changes the first letter of each word, leaving the case of any other...
实例 p.uppercase {text-transform:uppercase;} p.lowercase {text-transform:lowercase;} p.capitalize {text-transform:capitalize;} 尝试一下 » 文本缩进文本缩进属性是用来指定文本的第一行的缩进。实例 p {text-indent:50px;} 尝试一下 »
可以通过CSS的 text-transform 属性来实现: text-transform 转换不同的文本 属性值: none带有小写字母和大写字母的标准的文本(默认属性)。 capitalize首字母大写。 uppercase字母大写。 lowercase字母小写。 inherit从父元素继承。 示例: 代码语言:javascript
Well organized and easy to understand Web building tutorials with lots of examples of how to use HTML, CSS, JavaScript, SQL, Python, PHP, Bootstrap, Java, XML and more.