See More(查看更多)
git clone https://github.com/huyanan/more.git
- more(wrap,item,max,toggleButton);
- Like more($('.wrap'),'.item',6,null);
- Type: jQuery Element or selector
- Describe: Container selector or jQuery Elements.
- Like: $('#oneTable') or '.bootTable'
- Type: selector
- Describe: The content of the selector.
- Like: 'tr' or 'tbody tr' or '.views-row'
- Type: Number
- Describe: The Number of how many Elements you want to visible
- Like: 6
- default $('See More');
- Type: jQuery Elements
- Describe: Button for folding content
- Like: $('See More')
/**
* Normal Button styles
**/
.btn{
}
/**
* See More Button styles
**/
.lookmore{
//background-color:blue;
}
/**
* Button styles on compress
**/
.lookmore.compress{
background-image:url(compress.jpg);
}
/**
* Button styles on expand
**/
.lookmore.expand{
background-image:url(expand.jpg);
}
If you pass the toggleButton,please change styles with you className;
You need a server like APACHE Please visit the Url http://localhost/more/demo/more.html
- Use the jquery - boilerplate refactoring plug-in
MIT License © Zeno Rocha