Computer >> คอมพิวเตอร์ >  >> การเขียนโปรแกรม >> CSS

ตั้งค่าเส้นขอบมุมล่างซ้ายด้วย CSS


ใช้ border-bottom-left-radius คุณสมบัติเพื่อกำหนดเส้นขอบของมุมล่างซ้าย คุณสามารถลองเรียกใช้โค้ดต่อไปนี้เพื่อใช้คุณสมบัติ border-bottom-left-radius

ตัวอย่าง

<html>
   <head>
      <style>
         #rcorner {
            border-radius: 25px;
            border-bottom-left-radius: 45px;
            background: blue;
            padding: 20px;
            width: 200px;
            height: 150px;
         }
      </style>
   </head>
   <body>
      <p id = "rcorner">Rounded corners!</p>
   </body>
</html>