首页 > Web开发 > 详细

css: 边宽弧度

时间:2021-06-25 17:20:20      阅读:19      评论:0      收藏:0      [点我收藏+]
<div class="box">
<div class="home_top"> 这里是内容 </div>
</div>
.box { width: 250px; margin: auto; overflow: hidden; }
.home_top { position: relative; width: 100%; height: 100px; text-align: center; line-height: 50px; }
.home_top:after { width: 140%; height: 100px; position: absolute; left: -20%; top: 0; z-index: -1; content: ‘‘; border-radius: 0 0 50% 50%; background: linear-gradient(#2CBAF9, #04A9F4); }

 

效果图1:底部凸圆弧

技术分享图片

.focus{ position: relative;}
.focus:after{ position:absolute; left:0; right:0; bottom:-11px; content:""; z-index:1; height:20px; width:100%; border-radius:50%; background:#fff;}

 

效果图2:底部凹圆弧

技术分享图片

 

css: 边宽弧度

原文:https://www.cnblogs.com/Nyan-Workflow-FC/p/14930424.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!