圆角边框使用(重点)

1.语法:

border—radius:length

数值越大,弧度越明显

代码:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>圆角边框</title>
    <style>
          div{
                width:  300px;
                height: 150px;
                background-color: pink;
                border-radius: 10px;
          }
    </style>
</head>

<body>
         <div></div>
</body>

</html>

运行效果:

猜你喜欢

转载自blog.csdn.net/weixin_42900834/article/details/123856013