ในการกำหนดรูปร่างของเส้นขอบของมุมล่างขวาใน 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>