为了账号安全,请及时绑定邮箱和手机立即绑定

怎样实现这个效果呢,求解

怎样实现这个效果呢,求解

big_rock 2015-06-04 16:51:27
中间画了一个圆,下边的这个半圆 怎样实现,求解
查看完整描述

2 回答

?
成者并非一蹴而就

TA贡献20条经验 获得超7个赞

<!DOCTYPE html>
<html>

  <head>
    <meta charset="UTF-8">
    <title>Demo</title>
    <style>
        *{
          border:0;
          padding:0;
          outline: 0;
          margin:0;
        }/*CSS SIMPLE RESET*/

        .wrap{
          position:relative;

          width:200px;
          height:200px;
          background: #FFF;
          border:5px solid #DDD;
          -webkit-border-radius: 100px;
          -moz-border-radius: 100px;
          -ms-border-radius: 100px;
          -o-border-radius: 100px;
          border-radius: 100px;

          overflow: hidden;
        }

        .child{
          position:absolute;
          top:100px;
          width:200px;
          height:100px;
          background: rgba(153,70,10,.69);;
          -webkit-border-radius: 0 0 50px 50px;
          -moz-border-radius: 0 0 50px 50px;
          -ms-border-radius: 0 0 50px 50px;
          -o-border-radius: 0 0 50px 50px;
          border-radius: 0 0 50px 50px;
        }

        .child h3{
          padding:20px;
          text-align: center;
          font-family: "微软雅黑";
          font-size:12pt;
          color:rgba(255, 255, 255, 0.8);;
        }
    </style>
  </head>

  <body>
    <div>
        <div>
            <h3>收益完爆<br>普通理财</h3>
        </div>
    </div>
  </body>

</html>

放到firefox或者chrome看效果......

两个圆嵌套就行了...

查看完整回答
反对 回复 2015-06-04
点击展开后面1
?
big_rock

TA贡献3条经验 获得超0个赞

问题补充,定位里边套一个圆是不行的,因为不是半圆,想用两个折叠起来做,怎么做


查看完整回答
反对 回复 2015-06-04
  • 2 回答
  • 0 关注
  • 1614 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信