자바스크립트 하단 속성


  번역 결과:

영어 [ˈbɑ:təm]

n. 하단, 하단

vt를 측정하세요. Bottom; 기초를 세우다

3인칭 단수: Bottoms 복수: Bottoms 현재 분사: Bottoming 과거 시제: Bottomed 과거 분사: Bottomed

자바스크립트 하단 속성통사론

기능: 위치가 지정된 요소의 아래쪽 여백 경계와 포함 블록의 아래쪽 경계 사이의 오프셋을 설정합니다.

구문: ​​Object.style.bottom=auto|%|length

참고: "position" 속성 값이 "static"인 경우 "bottom" 속성 설정은 효과가 없습니다.

자바스크립트 하단 속성예

<html>
<head>
<style type="text/css">
input
{
position:absolute;
}
</style>
<script type="text/javascript">
function setBottomEdge()
{
document.getElementById("b1").style.bottom="100px";
}
</script>
</head>
<body>

<input type="button" id="b1" onclick="setBottomEdge()"
value="Set bottom edge to 100 px" />

</body>
</html>

인스턴스 실행 »

온라인 인스턴스를 보려면 "인스턴스 실행" 버튼을 클릭하세요

인기 추천

비디오

Q&A