JavaScript Reference/Javascript Properties/bottom

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

"bottom" Example

   <source lang="javascript">
   

<html> <body>

This is some sample text.

<button onclick="alert(myP.getBoundingClientRect().bottom);">Bottom</button> </body> </html>


     </source>
   
  


"bottom" is applied to

   <source lang="javascript">

+----------------+--------------------------------------------------------------+ | Applied_To |TextRectangle | +----------------+--------------------------------------------------------------+

     </source>
   
  


"bottom" Syntax and Note

   <source lang="javascript">

Note: Read and write property. Sets the value in pixels of the bottom coordinate of the container rectangle surrounding the element"s content.

Syntax:

TextRectangleName.bottom = value


     </source>