在 CSS 中為 body 或文字新增特別顏色的角


CSS3 圓角用於透過使用 border-radius 屬性為 body 或文字新增特殊顏色的角。

示例

線上演示

<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>

更新日期:2020 年 3 月 16 日

377 次瀏覽

開啟你的 職業生涯

完成課程並獲得認證

開始
廣告