29HUI - 图标及九宫格(hui-speed-dial-icons)

简介: 29HUI - 图标及九宫格(hui-speed-dial-icons)

效果图

九宫格布局dom结构

<div class="hui-speed-dial">
    <ul>
       <li>
          <div class="hui-speed-dial-icons">
              <span class="hui-icons hui-icons-action-sheet"></span>
          </div>
          <div class="hui-speed-dial-text">文本</div>
        </li>
        循环li.....
    </ul>
</div>

完整演示代码

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title>HUI</title>
<link rel="stylesheet" type="text/css" href="../css/hui.css" />
</head>
<body>
<header class="hui-header">
    <div id="hui-back"></div>
    <h1>HUI </h1>
</header>
<div class="hui-wrap">
    <div class="hui-center-title" style="margin-top:15px;"><h1>演示样例</h1></div>
    <div style="padding:10px;">
    <div class="hui-speed-dial">
        <ul></ul>
    </div>
    </div>
</div>
<script src="../js/hui.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
var icons = [   'hui-icons-menu', 'hui-icons-toast', "hui-icons-menu","hui-icons-img",
                "hui-icons-left","hui-icons-number", "hui-icons-up","hui-icons-down",
                "hui-icons-down2","hui-icons-progress", "hui-icons-success","hui-icons-range",
                "hui-icons-warn","hui-icons-tab", "hui-icons-loading","hui-icons-picker",
                "hui-icons-eyes","hui-icons-home", "hui-icons-switch","hui-icons-news",
                "hui-icons-swipe","hui-icons-my", "hui-icons-forum","hui-icons-nav",
                "hui-icons-menu-point","hui-icons-star", "hui-icons-msg","hui-icons-water-fall" ,
                "hui-icons-search","hui-icons-register" , "hui-icons-write","hui-icons-check" ,
                "hui-icons-loading2","hui-icons-clone" , "hui-icons-remove","hui-icons-like" ,
                "hui-icons-pause","hui-icons-stop" , "hui-icons-shopping-cart"
        ];
var html  = '';
for(var i = 0; i < icons.length; i++){
    html += '<li>'+
        '<div class="hui-speed-dial-icons">'+
            '<span class="hui-icons '+icons[i]+'"></span>'+
        '</div>'+
        '<div class="hui-speed-dial-text">'+icons[i].replace('hui-icons-', '')+'</div>';
    '</li>';
    hui('.hui-speed-dial ul').html(html);
}
</script>
</body>
</html>
目录
相关文章
15HUI - Loading动画(hui.loading)
15HUI - Loading动画(hui.loading)
53 0
15HUI - Loading动画(hui.loading)
|
JavaScript
25HUI - 下拉刷新(hui-loading-wrap)
25HUI - 下拉刷新(hui-loading-wrap)
63 0
|
JavaScript
10HUI - 按钮(hui-button)
10HUI - 按钮(hui-button)
61 0
|
6月前
|
小程序 前端开发
【微信小程序】-- 常用的基础内容组件介绍 -- text & rich-text & progress & icon(七)
【微信小程序】-- 常用的基础内容组件介绍 -- text & rich-text & progress & icon(七)
|
6月前
IKun Progress
IKun Progress
768 0
17HUI - 进度条(hui-progress)
17HUI - 进度条(hui-progress)
42 0
17HUI - 进度条(hui-progress)
11HUI - 数字标识(hui-badge)
11HUI - 数字标识(hui-badge)
48 0
11HUI - 数字标识(hui-badge)
|
JavaScript
22HUI - 轮播组件(hui-swipe)
22HUI - 轮播组件(hui-swipe)
58 0
|
JavaScript
20HUI - 折叠面板(hui-accordion)
20HUI - 折叠面板(hui-accordion)
57 0
|
JavaScript
06HUI - 底部导航及新消息提示组件(hui-footer-icons)
06HUI - 底部导航及新消息提示组件(hui-footer-icons)
46 0