zoukankan      html  css  js  c++  java
  • 栅格图标排列布局

    实现这种效果,主要用display:flex;实现。

    <div style="margin-top: 5%;display: flex; flex-direction:row">
       <div style="display: flex; flex-direction: column;  25%; text-align: center;">
          <div style="background: url(../../img/monitoring.png) no-repeat; background-size: contain; background-position: center; height: 40px;"></div>
          <span style="font-size: 10px; margin-top: 7px;">作业监控</span>
       </div>
       <div style="display: flex; flex-direction: column;  25%; text-align: center;">
          <div style="background: url(../../img/set.png) no-repeat; background-size: contain; background-position: center; height: 40px;"></div>
          <span style="font-size: 10px; margin-top: 7px;">机具配置</span>
       </div>
    </div>
  • 相关阅读:
    线段树
    2016.9.4
    使用CSS代码修改博客模板
    爬虫
    PHP初学[DAY2]
    2016.8.23
    一个自动设置游戏房间的脚本
    可逆矩阵生成
    #2284. 接水果(fruit)
    #3762. 有趣的数(number)
  • 原文地址:https://www.cnblogs.com/wujiaqi/p/7366091.html
Copyright © 2011-2022 走看看