简体   繁体   中英

How can I use jQuery and/or CSS3 to change how many unordered list items are displayed?

Hey fine folks of Stack Overflow.

I have a bunch of unnested, unordered list items. They look like this:

我的清单项目

I want the user to be able to increase or decrease (preferably with a nice animation) the number of these list items that are displayed on the page, say, via + and - buttons. How can I best do this with jQuery and/or CSS3?

Here is my Mako template and linked CSS file , as requested.

You could try something like this. It's fairly rudimentary, but it works-ish.

http://jsfiddle.net/CnKXK/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM