• 阿里巴巴SUI Mobile的使用


    1.引入文件

    <link rel="stylesheet" href="./css/sm.min.css">
    <link rel="stylesheet" href="./css/sm-extend.min.css">
    
    <script type='text/javascript' src='./lib/zepto/zepto.min.js' charset='utf-8'></script>
    <script type='text/javascript' src='./js/sm.min.js' charset='utf-8'></script>
    <script type='text/javascript' src='./js/sm-extend.min.js' charset='utf-8'></script>
    

    2.调用模块

        <div class="page-group">
            <div class="page page-current">
                <header class="bar bar-nav">
                    <a class="button button-link button-nav pull-left" href="/demos/card" data-transition='slide-out'>
                        <span class="icon icon-left"></span> 返回
                    </a>
                    <h1 class="title">我的生活</h1>
                </header>
                <div class="content">
                    <div class="content-block">
                        <p><a href="#" class="button">Usual Button 1</a></p>
                        <p><a href="#" class="button button-light">light button</a></p>
                        <p><a href="#" class="button button-dark">dark button</a></p>
                        <p><a href="#" class="button button-success">success button</a></p>
                        <p><a href="#" class="button button-danger">danger button</a></p>
                        <p><a href="#" class="button button-warning">warning button</a></p>
                        <p><a href="#" class="button disabled">disabled button</a></p>
                    </div>
                    <div class="content-block">
                        <p><a href="#" class="button button-round">Round Button 1</a></p>
                    </div>
                    <div class="content-block">
                        <p><a href="#" class="button button-big">Big Button </a></p>
                        <p><a href="#" class="button button-big button-round">Big Round Button </a></p>
                    </div>
                </div>
                <nav class="bar bar-tab">
                    <a class="tab-item active" href="#">
                        <span class="icon icon-home"></span>
                        <span class="tab-label">首页</span>
                    </a>
                    <a class="tab-item" href="#">
                        <span class="icon icon-me"></span>
                        <span class="tab-label">我</span>
                    </a>
                    <a class="tab-item" href="#">
                        <span class="icon icon-star"></span>
                        <span class="tab-label">收藏</span>
                    </a>
                    <a class="tab-item" href="#">
                        <span class="icon icon-settings"></span>
                        <span class="tab-label">设置</span>
                    </a>
                </nav>
            </div>
        </div>
    

    3.查看效果

    具体可以参考
    http://m.sui.taobao.org/components/

    代码下载
    http://files.cnblogs.com/files/jiqing9006/test-sui.zip

  • 相关阅读:
    AngularJS依赖注入
    transclude 嵌入
    收藏的文章
    mysql
    jquery的deferred对象
    restrict取值
    AngularJs碎片笔记
    js工具函数
    canvas解决画图模糊
    去体湿
  • 原文地址:https://www.cnblogs.com/jiqing9006/p/5579735.html
Copyright © 2020-2023  润新知