css实现半圆和圆

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_20757489/article/details/88079608
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>半圆角</title>
    <style type="text/css">
        div{
            width: 100px;
            height: 50px;
            background-color: blue;
            border-radius: 100px 100px 0 0;
        }
    </style>
</head>
<body>
<div></div>
</body>
</html>

结果如下:

猜你喜欢

转载自blog.csdn.net/qq_20757489/article/details/88079608