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

คุณสมบัติ CSS border-top-left-radius


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

ตัวอย่าง

<html>
   <head>

      <style>
         #rcorner {
            border-radius: 25px;
            border-top-left-radius: 45px;
            background: green;
            padding: 20px;
            width: 200px;
            height: 150px;
         }
      </style>

   </head>
   <body>
      <p id="rcorner">Rounded corners!</p>
   </body>
</html>