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

ตั้งค่าคุณสมบัติ border-radius ทั้งหมดด้วย CSS


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

ตัวอย่าง

<html>
   <head>
      <style>
         #rcorner {
            border-radius: 25px;
            background: #85C1E9;
            color: white;
            padding: 20px;
            width: 200px;
            height: 250px;
         }
      </style>
   </head>
   <body>
      <p id = "rcorner">Rounded corners!</p>
   </body>
</html>