📜  如何使用 CSS 添加圆角边框?

📅  最后修改于: 2021-10-29 04:00:20             🧑  作者: Mango

本文的目的是通过使用 CSS 中的 border-radius 属性为 HTML 元素添加圆角边框。它用于使元素的角变圆。该属性设置元素的边框半径。

句法:

border-radius: 1-4 length|% / 1-4 length|%|initial|inherit

例子:



  

    

  

    
        

            GeeksForGeeks         

        

            How to add a rounded              border with css ?         

           
            

                Rounded corners Borders             

        
    
    

输出:

支持的浏览器:

  • 谷歌浏览器
  • IE浏览器
  • 火狐
  • 歌剧
  • 苹果浏览器