HTML CSS Reference/CSS Attributes and Javascript Style Properties/border

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

"border" Example

   <source lang="html4strict">
   

<html> <head> <style> .style1 { border:8px solid blue; font-family:verdana; font-weight:bold} .style2 { border:"none"; font-family:verdana; font-weight:bold } </style> </head> <body>

 Move your mouse in and out the see the style change.

</body> </html>


     </source>
   
  


"border" is applied to

   <source lang="html4strict">

+----------------+--------------------------------------------------------------+ | Applied_To |<a> <acronym> | | | |

| |
|

| |<body> <button> |

| |
|

| | | | |<custom>

| | |defaults | | | <dir> |

| |
|

| |

| | |<embed> <fieldset> | | | <form> | | |<frame> <hn> | | | <img> | | |<input type="button"> <input type="checkbox"> | | |<input type="file"> <inputtype="image"> | | |<input type="password"> <input type="radio"> | | |<input type="reset"> <input type="submit"> | | |<input type="text"> | | |<isindex> |

| |<label>
  • | | |<listing> <marquee> | | |<menu> <nobr> | | |<object>
      | | |

                               |
      |                |                             runtimeStyle                  |
      |                |                                                     |
      |                |                                                 |
      |                |                                              |
      |                |style                                                    |
      |                |                                                  |
      |                |
      <textarea> | | | | | |
        | | | <xmp> | +----------------+--------------------------------------------------------------+ </source>

        "border" Syntax and Note

        <source lang="html4strict"> Note: Defines three border properties: border-color, border-width, and border-style. The three property values are separated by blank spaces and the order is irrelevant.

        Syntax:

        element { border: values } elementID.style.border = "values" document.all.elementID.style.border = "values" // IE only


        </source>