用css写一个底部弧度的效果


效果:

代码:

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>ccc</title>
<style type="text/css">
.box {
  position: relative;
  width: 100%;
  height: 200px;
  text-align: center;
  color: #fff;
  background-color: yellow;
}
.box:after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -100px;
  z-index: -1;
  content: ' ';
  height: 200px;
  width: 100%;
  border-radius: 0 0 50% 50%;
  background-color: yellow;
}
</style>
<div class='box'>hello world</div>
</body>
</html>

  


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM