老师,您看这个标准吗?

来源:2-14 编程练习

李可意

2019-10-21 15:08:52

<!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>
    <style>
        body {
            background: #f3f3f3;
        }
        div{
            width: 200px;
            height: 100px;
            border: 10px solid red;
            float: left;
            margin: 100px;
        }
        div:nth-child(1){
            border-radius: 0px 40px 30px 50px / 0px 40px 50px 50px;
        }
        div:nth-child(2){
            transform:rotate(90deg);
            border-radius: 40px 110px 0px 10px / 50px 100px 0px 10px;
        }
        div:nth-child(3){
            transform:rotate(-90deg);
            border-radius: 10px 50px;
        }
    </style>
</head>
<body>
    <div></div>
    <div></div>
    <div></div>
</body>
</html>


写回答

1回答

好帮手慕星星

2019-10-21

同学你好,

实现效果与效果图还是有差异的哦:

http://img.mukewang.com/climg/5dad600a09e1e21d09850358.jpg

http://img.mukewang.com/climg/5dad60250978a6aa12090329.jpg

参考调整:

http://img.mukewang.com/climg/5dad61a809169ea408170461.jpg

进行rotate旋转之后,坐标轴也会跟着改变,所以不要再按照原来的四个角进行设置了。

可以再测试下,祝学习愉快!

欢迎采纳~

0

0 学习 · 5012 问题

查看课程