美文网首页
边框圆角

边框圆角

作者: GOD_4239 | 来源:发表于2019-10-30 15:27 被阅读0次

边框:border
圆角:border-radius
让四个角都成圆角

示例:
HTML代码

 <div class="box">
         
     </div>

style样式代码

<style>
        .box{
            background: green;
            color: white;
            width: 100px;
            height: 50px;
            border-radius: 20px;
            text-align: center;
            line-height: 50px;
        }
    </style>
image.png

圆角:
boorder-radius:让四个角都圆角
数值:弧度的长度

数值1/数值2 :
数值1代表角度水平方向的长度
数值2代表角度垂直方向的长度

        一个值:代表4个方向
<div class="box">
        
    </div>
<style>
        .box{
            background: green;         
            width: 100px;
            height: 100px;
            border-radius: 20px;
            
        }
      
    </style>
image.png
        单独设置某一个角度的圆角
            bordr-top-left-radius:左上角
<div class="box">
        
    </div>
<style>
        .box{
            background: green;         
            width: 100px;
            height: 100px;
            border-top-left-radius: 20px;
            
        }
      
    </style>
image.png
        四个值:四个方向  左上  右上    右下    左下    顺时针方向

        三个值:左上  右上左下  右下

        两个值:左上右下    右上左下

        值列表1/值列表2
        值列表可以是1值或者2值或者4个值
        值列表1全部代表水平方向
        值列表2全部代表垂直方向

            值单位
                px
                %   :相对于自身

相关文章

  • CSS边框圆角--跟着李南江学编程

    1.什么是边框圆角? 就是把矩形边框变成圆角边框,就叫做边框圆角。 2.设置边框圆角的格式 2.1 border-...

  • 25.边框圆角渐变

    边框 什么是边框圆角?将直角的边框变为圆角的边框 边框圆角的格式?border-radius: 左上 右上 右下 ...

  • Flutter-Border

    边框(Border) 单侧边框 全部边框 圆角(borderRadius) 全部圆角 单侧圆角 阴影(BoxSha...

  • Image

    直接圆角图片 设置圆角图片度数 设置圆角图片带灰色圆角边框 设置圆角图片带灰色圆角边框带阴影

  • 常用CSS3 一目了然

    1.css3边框 圆角边框 border-radius: 5px;(圆角半径) 边框阴影 box-shadow: ...

  • android中实现view的圆角

    一、实心圆角 二、空心圆角、有边框

  • UIView任意角圆角和圆角边框

    圆角原理:设置view.layer.mask该遮罩层。 圆角边框:在view.layer 上增加一层,绘制圆角边框...

  • CSS3边框,背景,渐变,过渡,2d变换

    01-边框圆角.html 02-圆角应用.html 03-边框阴影.html 04-边框图片.html 01-背景...

  • 盒模型

    内容区 内边距 边框 指定边框圆角 边框风格 外边距

  • 边框相关样式

    border-radius(边框圆角) 该属性用于设置边框圆角,属性值为圆角半径,当设置一个时为值为四个角的圆角半...

网友评论

      本文标题:边框圆角

      本文链接:https://www.haomeiwen.com/subject/dmpovctx.html