在niceScroll Js中禁用垂直滚动

我只需要在此部分中进行水平滚动并隐藏垂直滚动

我已经尝试过像overflow-x:hidden这样的东西overflow-x:hidden在每一件东西中但它不起作用。

   

All Complex Ecosystems Have Parasites

All Complex Ecosystems Have Parasites

Cory Doctorow

doctorow@craphound.com

For the O’Reilly Emerging Technology Conference

San Diego, California

16 March 2005

This text is dedicated to the public domain, using a Creative Commons public domain dedication:

> Copyright-Only Dedication (based on United States law) > > The person or persons who have associated their
work with this > document (the “Dedicator”) hereby dedicate the entire copyright > in the work of authorship
identified below (the “Work”) to the > public domain. > > Dedicator makes this dedication for the
benefit of the public at > large and to the detriment of Dedicator’s heirs and successors. > Dedicator intends
this dedication to be an overt act of > relinquishment in perpetuity of all present and future rights > under
copyright law, whether vested or contingent, in the Work. > Dedicator understands that such relinquishment of all
rights > includes the relinquishment of all rights to enforce (by lawsuit > or otherwise) those copyrights in
the Work. > > Dedicator recognizes that, once placed in the public domain, the > Work may be freely reproduced,
distributed, transmitted, used, > modified, built upon, or otherwise exploited by anyone for any > purpose, commercial
or non-commercial, and in any way, including > by methods that have not yet been invented or conceived.

AOL hates spam. AOL could eliminate nearly 100 percent of its subscribers’ spam with one easy change: it could simply
shut off its internet gateway. Then, as of yore, the only email an AOL subscriber could receive would come from another
AOL subscriber. If an AOL subscriber sent a spam to another AOL subscriber and AOL found out about it, they could terminate
the spammer’s account. Spam costs AOL millions, and represents a substantial disincentive for AOL customers to remain
with the service, and yet AOL chooses to permit virtually anyone who can connect to the Internet, anywhere in the world,
to send email to its customers, with any software at all.

[…]

A free ebook from http://manybooks.net/

$(document).ready(function(){ $(".do-nicescrol").niceScroll(); });

nicescroll插件中有一个overflowx选项,默认情况下仍然为true。 希望,这个选项可以解决您的问题。 您可以在下面的图片或https://github.com/inuyaksa/jquery.nicescroll/blob/master/jquery.nicescroll.js查看详细信息。 在此处输入图像描述

要删除脚本Nicescroll的水平滚动,您必须插入此选项horizrailenabled:false

所以你的脚本是:

 $(document).ready(function(){ $(".do-nicescrol").niceScroll("{horizrailenabled:false}"); });