用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