HTML CSS Reference/CSS Attributes and Javascript Style Properties/text transform

Материал из Web эксперт
Перейти к: навигация, поиск

"text-transform" Example

   <source lang="html4strict">
   

<html> <body>

www.wbex.ru

<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> |

| |
|

| | <col> | | |<colgroup> currentStyle | | |<custom>

| | |defaults |

| |<dir>
| | |
| | | <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>                                                   |
      |                |                             
        | | | <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>

      |

      | |<textarea> <tfoot> |

      | |
      <thead> | | |