可视化操作,实现横向柱形echart图 无边框

两盒软妹~` 提交于 2019-12-01 09:55:23

图片的实现:

<!DOCTYPE html>
<html>

<head>
  <meta charset="UTF-8">
  <title>占比</title>
</head>
<style type="text/css">
.bgF{
    height: 12px;
    background-color: #7299CF;
    border-radius: 10px 0 0 10px;
    width:50%;
  }
  .bgBar{
    height: 12px;
    background-color: #DB7272;
    margin: auto;
    border-radius: 10px;
    display: flex;
    overflow: hidden;
  }
  .line{
    width: 4px;
    height: 12px;
    background: #fff;
    -webkit-transform: skew(30deg);
    transform: skew(30deg);
  }
  .bgL{
    margin-left: -10px;
    width: 15px;
    height: 12px;
    background: #7299CF;
    -webkit-transform: skew(30deg);
    transform: skew(30deg);
  }
</style>
<body>
  <div class="bgBar">
      <div class="bgF"></div>
    <div class="bgL"></div>
    <div class="line"></div>
    
  </div>
</body>
</html>

 

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!