帮酷LOGO
0 0 评论
  • 显示原文与译文双语对照的内容
文章标签:事件  Jquery事件  Break  设计  trigger  event  断点  EVE  
Trigger jQuery events for your responsive design breakpoints!

  • 源代码名称:breakpoints
  • 源代码网址:http://www.github.com/xoxco/breakpoints
  • breakpoints源代码文档
  • breakpoints源代码下载
  • Git URL:
    git://www.github.com/xoxco/breakpoints.git
  • Git Clone代码到本地:
    git clone http://www.github.com/xoxco/breakpoints
  • Subversion代码到本地:
    $ svn co --depth empty http://www.github.com/xoxco/breakpoints
    Checked out revision 1.
    $ cd repo
    $ svn up trunk
    
  • Breakpoints.js

    定义响应性设计的断点,Breakpoints.js 将在浏览器进入和/或者退出断点时消除自定义事件。

    从Github获得它。

    视图演示插件

    XOXCO 创建。

    命令行指令

    
    $(window).setBreakpoints({
    
    
    //use only largest available vs use all available
    
    
     distinct: true, 
    
    
    //array of widths in pixels where breakpoints
    
    
    //should be triggered
    
    
     breakpoints: [
    
    
     320,
    
    
     480,
    
    
     768,
    
    
     1024
    
    
     ] 
    
    
    }); 
    
    
    
    $(window).bind('enterBreakpoint320',function() {
    
    
    . . .
    
    
    });
    
    
    
    $(window).bind('exitBreakpoint320',function() {
    
    
    . . .
    
    
    });
    
    
    
    $(window).bind('enterBreakpoint768',function() {
    
    
    . . .
    
    
    });
    
    
    
    $(window).bind('exitBreakpoint768',function() {
    
    
    . . .
    
    
    });
    
    
    
    $(window).bind('enterBreakpoint1024',function() {
    
    
    . . .
    
    
    });
    
    
    
    $(window).bind('exitBreakpoint1024',function() {
    
    
    . . .
    
    
    });
    
    
    
    


    文章标签:DES  设计  EVE  event  事件  Break  trigger  响应式设计  

    Copyright © 2011 HelpLib All rights reserved.    知识分享协议 京ICP备05059198号-3  |  如果智培  |  酷兔英语