JavaScript Reference/Javascript Properties/bottom
Версия от 18:30, 25 мая 2010; (обсуждение)
"bottom" Example
<html>
<body>
<p id="myP" style="background-color:black; color:white; width:200;">
This is some sample text.
</p>
<button onclick="alert(myP.getBoundingClientRect().bottom);">Bottom</button>
</body>
</html>
"bottom" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |TextRectangle |
+----------------+--------------------------------------------------------------+
"bottom" Syntax and Note
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