하단 테두리의 너비를 설정하려면 borderBottomWidth JavaScript의 속성. 너비를 변경할 수 있습니다.
예시
아래 코드를 실행하여 아래쪽 테두리의 너비를 설정하는 방법을 배울 수 있습니다. -
<!DOCTYPE html>
<html>
<body>
<div id="box">Demo Text</div>
<br>
<button onclick="display()">Click to set width of bottom border</button>
<script>
function display() {
document.getElementById("box").style.borderBottomStyle = "dashed";
document.getElementById("box").style.borderBottomWidth = "5px";
}
</script>
</body>
</html>