Sử dụng thuộc tính border-top-right-radius trong CSS để đặt bán kính bo góc trên bên phải. Bạn có thể chạy mã sau để triển khai thuộc tính border-top-right-radius:
Ví dụ
<html> <head> <style> #rcorner { border-radius: 25px; border-top-right-radius: 45px; background: orange; padding: 20px; width: 400px; height: 250px; } </style> </head> <body> <p id = "rcorner">Rounded border-top-right corner!</p> </body> </html>