CSS border-radius 属性

cssweb developmentfront end technology更新于 2025/9/9 17:48:17

使用 border-radius 属性可以设置四个 border-radius 属性。您可以尝试运行以下代码来实现 border-radius 属性 −

示例

<html>
   <head>
      <style>
         #rcorner {
            border-radius: 25px;
            background: #8AC007;
            padding: 20px;
            width: 200px;
            height: 150px;
         }
      </style>
   </head>
   <body>
      <p id="rcorner">Rounded corners!</p>
   </body>
</html>

相关文章


有用资源