JavaScript에서 오른쪽 하단 모서리의 테두리 모양을 설정하려면 borderBottomLeftRadius를 사용하세요. 재산. 둥근 테두리를 추가할 수 있습니다.
예시
왼쪽 하단 모서리의 모양을 설정하는 방법을 배우기 위해 다음 코드를 실행할 수 있습니다 -
<!DOCTYPE html>
<html>
<head>
<style>
#box {
border: 2px dashed blue;
width: 120px;
height: 120px;
}
</style>
</head>
<body>
<button onclick="display()">Set bottom-left border corner</button>
<div id="box">
<p>Demo Text</p>
<p>Demo Text</p>
</div>
<script>
function display() {
document.getElementById("box").style.borderBottomLeftRadius = "30px";
}
</script>
</body>
</html>