Computer >> Hướng Dẫn Máy Tính >  >> Lập Trình >> CSS

Thuộc tính CSS border-top-left-radius

Sử dụng thuộc tính border-top-left-radius để đặt bo góc trên bên trái. Bạn có thể thử chạy mã sau:

Ví dụ

<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">Góc bo tròn!</p>
</html>