开发者社区> 问答> 正文

这个效果html怎么实现

screenshot

<div>
     <div style="line-height: 30px;">
         <div style="border: 1px solid gray; height: 10px; width: 10px; float: left; margin: 10px;" class="img-circle"></div>
         <div style="font-size: 14pt;">前期沟通</div>
     </div>
     <div style="margin: 0px 15px; border-left: 1px solid gray;">
          <ul>
                 <li>功能需求</li>
                 <li>文案需求</li>
                 <li>其他需求</li>
          </ul>
      </div>
</div>

展开
收起
杨冬芳 2016-06-22 16:38:57 1778 0
1 条回答
写回答
取消 提交回答
  • IT从业
    <style>
    .img-circle{
      width: 10px;
      height: 10px;
      border: 1px solid #DDD;
      border-radius: 50%;
      float: left;
      margin: 10px;
      position: relative;
    }
    .img-circle::after{
      content: '';
      width: 1px;
      height: 300px;
      border-left: 1px solid #ddd;
      display: block;
      position: absolute;
      top: 10px;
      left: 5px;
    }
    </style>
    
    <div>
         <div style="line-height: 30px;">
             <div class="img-circle"></div>
             <div style="font-size: 14pt;">前期沟通</div>
         </div>
         <div>
              <ul>
                     <li>功能需求</li>
                     <li>文案需求</li>
                     <li>其他需求</li>
              </ul>
          </div>
    </div>
    2019-07-17 19:45:45
    赞同 展开评论 打赏
问答标签:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
《零基础HTML入门教程》 立即下载
天猫 HTML5 互动技术实践 立即下载
天猫HTML5互动技术实践 立即下载