HTML CSS Reference/CSS Attributes and Javascript Style Properties/text transform
Содержание
"text-transform" Example
<source lang="html4strict">
<html> <body>
<button onclick="myDiv.style.textTransform = "uppercase";">uppercase</button> <button onclick="myDiv.style.textTransform = "lowercase";">lowercase</button> </body> </html>
</source>
"text-transform" is applied to
<source lang="html4strict">
+----------------+--------------------------------------------------------------+ | Applied_To |<a> <address> | | | |
| |<body> || |<button>
| | | | | |
| |<dir><col> | | |<colgroup> currentStyle | | |<custom>
| | |defaults | | | |
- | | | <fieldset> | | |<form> <hn> | | |<html> | | |<inputtype="button"> <input type="checkbox"> | | |<input type="file"> <input type="image"> | | |<input type="password"> <input type="radio"> | | |<input type="reset"> <inputtype="submit"> | | |<input type="text"> <isindex> | | | <label> | | |<legend>
- | | |<listing> <marquee> | | |<menu>
| | |
| | |runtimeStyle| | | <select> | | | | | || | |style | | || | |<tbody>
| | |<textarea> <tfoot> |
| |<thead> | | | | | | | | | <xmp> | +----------------+--------------------------------------------------------------+ </source>
"text-transform" Possible Values
<source lang="html4strict"> Possible Values none (the default), capitalize (capitalizes the first letter of every word), uppercase, lowercase.
</source>
"text-transform" Syntax and Note
<source lang="html4strict"> Note: How to capitalize text. Syntax:
element { text-transform: value } elementID.style.textTransform = "value" document.all.elementID.style.textTransform = "value" // IE only
</source>