border-radius的8个属性值_画半圆、叶子等

border-radius 的 8 个属性值

border-radius详细例子展示:

<!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>
        div{
        width: 100px;
        height: 100px;
        margin: 100px 100px;
        border: 2px solid red;
        /*        x轴 上1  右2  下3  左4/y轴上5 右6  下7   左8*/
        border-radius:5px 10px 15px 20px/15px 20px 30px 50px;}
    </style>
</head>
<body>
    <div></div>
</body>
</html>

效果图展示

圆角和盒子阴影应用

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>圆角和盒子阴影应用</title>
	<style>

			.one {
			    width: 200px;
			    height: 100px;
			    background-color: greenyellow;
			    border-radius: 200px 0 200px 0 / 100px 0 100px 0;
			}

			.two {
			    width: 200px;
			    height: 100px;
			    background-color: greenyellow;
			    border-radius: 200px 0 200px 0 / 100px 0 100px 0;
			    box-shadow: 10px 10px;
			}
			.three {
			    width: 200px;
			    height: 100px;
			    background-color: greenyellow;
			    border-radius: 200px 0 200px 0 / 100px 0 100px 0;
			    box-shadow: 20px 20px 5px 5px green,40px 40px 5px 5px;
			    margin-bottom: 100px;
			}

	</style>
</head>
<body>
	<div class="one"></div>
	<div class="two"></div>
	<div class="three"></div>

</body>
</html>

参考资料

学习资料



posted @ 2019-01-12 14:55  gleamer  阅读(1663)  评论(0编辑  收藏  举报