CSS3的圆角Border-radius

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>CSS3的圆角Border-radius</title>
<style>
body{margin: 0;padding: 100px;}
.example{
    width: 150px;
    height: 80px;
    border: 20px solid #ccc;
    margin: 5px;
    float: left;
}
.example1{
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
}
.example2{
    -webkit-border-radius: 10px 80px;
    -moz-border-radius: 10px 80px;
    border-radius: 10px 80px;
}
.example3{
    -webkit-border-radius: 0px 20px 50px 100px;
    -moz-border-radius: 0px 20px 50px 100px;
    border-radius: 0px 20px 50px 100px;
}
.example4{
    -webkit-border-radius: 130px 0;
    -moz-border-radius: 130px 0;
    border-radius: 130px 0;
}
.example5{
    /* “/”前是指圆角的水平半径,而“/”后是指圆角的垂直半径 */
    -webkit-border-radius: 50px 15px 20px 30px / 20px 80px 10px 15px;
    -moz-border-radius: 50px 15px 20px 30px / 20px 80px 10px 15px;
    border-radius: 50px 15px 20px 30px / 20px 80px 10px 15px;
}
</style>
</head>
<body>
    <div class="example example1"></div>
    <div class="example example2"></div>
    <div class="example example3"></div>
    <div class="example example4"></div>
    <div class="example example5"></div>
</body>
</html>

如下图所示:

了解更多http://www.w3cplus.com/css3/border-radius

 

转载于:https://www.cnblogs.com/baixc/p/3720136.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值