欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  web前端

Metro-UI系统-1-tile标签

程序员文章站 2022-04-19 14:30:18
...
一 效果图

Metro-UI系统-1-tile标签

二 各个效果的详解

1,简单磁贴

div class="tile"  data-role="title">  
        div class="tile-content iconic">
            icon /> 
        div>
    div>

Metro-UI系统-1-tile标签

2,带有标题和边角的磁贴

div class="tile">
        div class="tile-content">
            span class="tile-label">Labelspan> 
            span class="tile-badge">5span> 
        div>
    div>

3,一组图片的磁贴

div class="tile">
        div class="tile-content image-set">  
            img src="images/1.jpg">
            img src="images/1.jpg">
            img src="images/1.jpg">
            img src="images/1.jpg">
            img src="images/1.jpg">
        div>
    div>

Metro-UI系统-1-tile标签

3,一张图片的磁贴

div class="tile">
        div class="tile-content">
            img src="images/1.jpg" data-role="fitImage" data-format="square"> 
        div>
    div>

Metro-UI系统-1-tile标签

4,带有翻页动态效果的磁贴

div class="tile">
        div class="tile-content">
            div class="carousel" data-role="carousel"> 
                div class="slide">a href="http:www.baidu.com">img src="images/1.jpg">a>div>
                div class="slide">img src="images/1.jpg">div>
            div>
        div>
    div>

Metro-UI系统-1-tile标签

5,选择样式的磁贴

div class="tile element-selected"> 
        12321321
    div>

Metro-UI系统-1-tile标签

6,内容由下向上滑动磁贴

div class="tile">
        div class="tile-content slide-up"> 
            div class="slide"> 
                ... Main slide content ...
            div>
            div class="slide-over"> 
                ... Over slide content here ...
            div>
        div>
    div>

Metro-UI系统-1-tile标签Metro-UI系统-1-tile标签

7,内容由上向下滑动

div class="tile">
        div class="tile-content slide-down"> 
            div class="slide">
                ... Main slide content ...
            div>
            div class="slide-over"> 
                ... Over slide content here ...
            div>
        div>
    div>

Metro-UI系统-1-tile标签

8,内容由左向右滑动

div class="tile">
        div class="tile-content slide-left">
            div class="slide">
                ... Main slide content ...
            div>
            div class="slide-over">
                ... Over slide content here ...
            div>
        div>
    div>

Metro-UI系统-1-tile标签

9,定义内容是由右向左滑动

div class="tile">
        div class="tile-content slide-right"> 
            div class="slide">
                ... Main slide content ...
            div>
            div class="slide-over">
                ... Over slide content here ...
            div>
        div>
    div>

Metro-UI系统-1-tile标签

10,放大效果

    div class="tile">
        div class="tile-content zooming">  
            div class="slide">
                ... Slide content here ...
            div>
        div>
    div>

Metro-UI系统-1-tile标签Metro-UI系统-1-tile标签

11,缩小效果

div class="tile">
        div class="tile-content zooming-out"> 
            div class="slide">
                ... Slide content here ...
            div>
        div>
    div>

Metro-UI系统-1-tile标签Metro-UI系统-1-tile标签

12,上下滑动的效果

div class="tile-wide" data-role="tile" data-effect="slideUpDown"> 
        div class="tile-content">
            div class="live-slide">...slide content...div>
            ...
            div class="live-slide">...slide content2...div>
        div>
    div>

Metro-UI系统-1-tile标签

13,使用ICon的效果

Metro-UI系统-1-tile标签

三 源码地址

https://git.oschina.net/yudaming/metro

四 个人小站(提供各种技术类网站分享)

http://dmsite.chinacloudsites.cn/