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

สร้างภาพมุมโค้งด้วย CSS

หากต้องการสร้างภาพมุมโค้ง ให้ใช้คุณสมบัติ border-radius

ตัวอย่าง

<!DOCTYPE html> <html>    <head>       <style>          img {             border-radius: 20px;             border: 1px solid blue;          }       </style>    </head>    <body>       <h2>Coding Ground</h2>       <img src = "https://www.tutorialspoint.com/videotutorials/images/coding_ground_home.jpg" alt="Online Compiler" width="300" height="300">    </body> </html>