使用CSS画一个扇形

使用css画扇形代码如下:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <div class='sector'>

    </div>
</body>
<style>
    .sector {
        width: 0;
        height: 0;
        border-radius: 100px;
        border-width: 100px;
        border-style: solid;
        border-color: red transparent transparent transparent;
        line-height: 99px;
        overflow: hidden;
        cursor: pointer;
        margin: 30px auto
    }
</style>
</html>

持续更新中...

猜你喜欢

转载自blog.csdn.net/Cinderellahh92/article/details/107749391