• 边框上带有文字


    效果图:

    实现代码

    <div class="row wrap" style="margin-bottom: 20px; ">
      <p class = "circleborder circleborderOne"></p>
      <span class="wraptitle">社保收支统计</span>
      <p class = "circleborder circlebordertwo"></p>
      <div class="col-md-12"> <!--内容-->
        <div class="c_center ysb_center" id="sb_d_1"></div>
      </div>
    </div>

    样式:

    .wrap{
      margin-top: 10px;
      position: relative;
      border: 1px solid deepskyblue;
      box-sizing: border-box;
    }
    .wraptitle{
      position: absolute;
      top: -12px;
      left: 23px;
       106px;
      padding: 0 5px;
      color: #b9c9f1;
      font-family: "微软雅黑";
      background-color: #101d2d;
    }

    .circleborder{
      display: block;
       10px;
      height: 10px;
      border-radius: 10px;
      background-color: deepskyblue;
      border: 1px solid deepskyblue;
    }

    .circleborderOne {
      margin-top: -5px;
      margin-left: 13px;
    }

    .circlebordertwo {
      margin-top: -21px;
      margin-left: 129px;
    }

    实现边框上带有文字也可以使用 fieldset

    eg:

    <fieldset class="col-md-12 chart-box wrap">
        <legend class="sbdsjtitle sztitle">社保收支统计</legend>
        <p class = "circleborder circleborderOne"></p>
        <p class = "circleborder circlebordersz"></p>
        <div class="bdimg" id="sb_d_1"></div>
    </fieldset>
    .wrap {
    	border: 1px solid deepskyblue;
    }
    .sbdsjtitle {
    	 100px !important;
    	margin-left: 30px;
    	padding-left: 10px;
    	margin-bottom: 0px !important;
    	font-size: 16px !important;
    	color: #b9c9f1 !important;
    	border-bottom: 0px !important;
    }
    
    .sztitle {
    	 115px !important;
    }
    .circleborder {
    	display: block;
    	 10px;
    	height: 10px;
    	border-radius: 10px;
    	background-color: deepskyblue;
    	border: 1px solid deepskyblue;
    }
    
    .circleborderOne {
    	margin-top: -15px;
    	margin-left: 21px;
    }
    .circlebordersz {
    	margin-top: -21px;
    	margin-left: 145px;
    }
    

      

  • 相关阅读:
    主库binlog(master-log)与从库relay-log的关系
    binlog_format不同模式下,对mysqlbinlog恢复的影响
    主从 binlog_format 设置关系
    Mysql5.7多源复制,过滤复制一段时间后增加复制一个库的实现方法
    mysql 5.7安装过程中,初始化的问题
    mysql复制过滤参数说明
    模块化发展
    Angular指令内容小结
    vue项目打包到腾讯云服务器全过程
    Centos7安装Mysql5.7
  • 原文地址:https://www.cnblogs.com/xiaoQ0725/p/8038257.html
Copyright © 2020-2023  润新知