在没有滚动条的情况下一行显示文件图标 [英] display file icons in one line without scrollbars
本文介绍了在没有滚动条的情况下一行显示文件图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我想在一行中显示不同的文件图标(作为缩略图),我想使用向右和向左按钮滚动而不是默认按钮.
请帮忙.
我建议我创建一个< div>在其中< ul>和< li>可以在一行中显示一个cs,但是我的滚动条该怎么做?
谢谢
Hi all,
I want to display different file icons (as thumbnails) in one line and i want to use right and left buttons to scroll and not the default ones.
Please help.
I suggest that I create a <div> and inside it a <ul> and <li> with a cs to be displayed in one line but how to do my scroll bar?
Thanks
推荐答案
,您可以通过CSS将uls:hidden设置为ul元素.
您可以创建2个链接(如果需要,也可以创建2个元素),并使用javascript可以更改元素的滚动.
或者,您可以使用以下主题之一的jquery插件:< a href ="http://www.net-kit.com/jquery-custom-scrollbar-plugins/"> 10 jQuery Custom Scrollbar Plugins</a> [< a href ="http://www.net-kit.com/jquery-custom-scrollbar-plugins/" target ="_ blank" title ="New Window"> ^</a>]
you can set the overflow:hidden via css to the ul element.
you can create 2 link (or 2 element if you prefer) and with javascript you can change the scroll of the element.
or you can use a jquery plugin like one among theese : <a href="http://www.net-kit.com/jquery-custom-scrollbar-plugins/">10 jQuery Custom Scrollbar Plugins</a>[<a href="http://www.net-kit.com/jquery-custom-scrollbar-plugins/" target="_blank" title="New Window">^</a>]
这篇关于在没有滚动条的情况下一行显示文件图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文