{"id":2870,"date":"2014-03-30T21:55:32","date_gmt":"2014-03-30T13:55:32","guid":{"rendered":"https:\/\/sdeno.com\/?p=2870"},"modified":"2014-03-30T21:55:32","modified_gmt":"2014-03-30T13:55:32","slug":"%e7%be%8e%e5%8c%96%e6%bb%9a%e5%8a%a8%e6%9d%a1nicescroll-%e6%bc%82%e4%ba%ae%e7%9a%84%e8%87%aa%e5%ae%9a%e4%b9%89%e6%bb%9a%e5%8a%a8%e6%9d%a1%e6%8f%92%e4%bb%b6","status":"publish","type":"post","link":"https:\/\/sdeno.com\/?p=2870","title":{"rendered":"\u7f8e\u5316\u6eda\u52a8\u6761nicescroll \u6f02\u4eae\u7684\u81ea\u5b9a\u4e49\u6eda\u52a8\u6761\u63d2\u4ef6"},"content":{"rendered":"<a href=\"https:\/\/sdeno.com\/wp-content\/uploads\/2014\/03\/gundongt.gif\"><figure class=\"mdx-lazyload-container\" style=\"max-width:515px\"><div style=\"padding-top:112.23300970874%\"><\/div><div class=\"mdx-img-loading-sp mdui-valign\"><div><div class=\"mdui-spinner\"><\/div><\/div><\/div><img width=\"515\" height=\"578\" class=\"alignnone size-full wp-image-2871 lazyload\" title=\"gundongt\" src=\"data:image\/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" data-src=\"https:\/\/sdeno.com\/wp-content\/uploads\/2014\/03\/gundongt.gif\" alt=\"gundongt\"><\/figure><\/a>\n<p>\u914d\u7f6e\u53c2\u6570<\/p>\n<p>\u5f53\u8c03\u7528\u201cniceScroll\u201d\u4f60\u53ef\u4ee5\u4f20\u9012\u4e00\u4e9b\u53c2\u6570\u6765\u5b9a\u5236\u89c6\u89c9\u65b9\u9762\uff1a<br \/>\ncursorcolor &#8211; \u5341\u516d\u8fdb\u5236\u6539\u53d8\u5149\u6807\u989c\u8272\uff0c\u9ed8\u8ba4\u503c\u662f\u201c\uff03000000\u201d<br \/>\ncursoropacitymin &#8211; \u6539\u53d8\u4e0d\u900f\u660e\u5ea6\u975e\u5e38\u5149\u6807\u5904\u4e8e\u975e\u6d3b\u52a8\u72b6\u6001\uff08scrollabar\u201c\u9690\u85cf\u201d\u72b6\u6001\uff09\uff0c\u8303\u56f4\u4ece1\u52300\uff0c<br \/>\n\u9ed8\u8ba4\u4e3a0\uff08\u9690\u85cf\uff09<br \/>\ncursoropacitymax &#8211; \u6539\u53d8\u4e0d\u900f\u660e\u5ea6\u975e\u5e38\u5149\u6807\u5904\u4e8e\u6d3b\u52a8\u72b6\u6001\uff08scrollabar\u201c\u53ef\u89c1\u201d\u72b6\u6001\uff09\uff0c\u8303\u56f4\u4ece1\u52300\uff0c\u9ed8<br \/>\n\u8ba4\u503c\u662f1\uff08\u5b8c\u5168\u4e0d\u900f\u660e\uff09<br \/>\ncursorwidth &#8211; \u50cf\u7d20\u5149\u6807\u7684\u5bbd\u5ea6\uff0c\u9ed8\u8ba4\u503c\u4e3a5\uff08\u4f60\u53ef\u4ee5\u5199\u201c\u52a0\u51655px\u201d\u592a\uff09<br \/>\ncursorborder &#8211; \u6e38\u6807\u8fb9\u6846css\u5b9a\u4e49\uff0c\u9ed8\u8ba4\u4e3a\u201c1px\u7684\u56fa\u4f53\uff03FFF\u201d<br \/>\ncursorborderradius &#8211; \u4ee5\u50cf\u7d20\u4e3a\u5149\u6807\u8fb9\u754c\u534a\u5f84\uff0c\u9ed8\u8ba4\u4e3a\u200b\u200b\u201c\u9012\u56db\u65b9\u201d<br \/>\nzIndex\u7684 &#8211; \u6539\u53d8z-index\u503c\u7684\u6eda\u52a8\u6761\u7684div\uff0c\u9ed8\u8ba4\u503c\u662f9999<br \/>\nscrollspeed &#8211; \u6eda\u52a8\u901f\u5ea6\uff0c\u9ed8\u8ba4\u503c\u4e3a60<br \/>\nmousescrollstep &#8211; \u9ad8\u901f\u6eda\u52a8\u9f20\u6807\u6eda\u8f6e\uff0c\u9ed8\u8ba4\u503c\u662f40\uff08\u50cf\u7d20\uff09<br \/>\ntouchbehavior &#8211; \u4f7f\u5149\u6807\u62d6\u52a8\u6eda\u52a8\u50cf\u5728\u53f0\u5f0f\u7535\u8111\u89e6\u6478\u8bbe\u5907\uff08\u9ed8\u8ba4\uff1afalse\uff09<br \/>\nhwacceleration &#8211; \u4f7f\u7528\u786c\u4ef6\u52a0\u901f\u6eda\u52a8\u652f\u6301\u7684\u65f6\u5019\uff08\u9ed8\u8ba4\uff1atrue\uff09<br \/>\nboxzoom &#8211; \u4f7f\u53d8\u7126\u6846\u4e2d\u7684\u5185\u5bb9\uff08\u9ed8\u8ba4\uff1afalse\uff09<br \/>\ndblclickzoom &#8211; \uff08\u4ec5\u5f53boxzoom = TRUE\uff09\u53d8\u7126\u6fc0\u6d3b\u65f6\uff0c\u53cc\u51fb\u5bf9\u8bdd\u6846\uff08\u9ed8\u8ba4\uff1atrue\uff09<br \/>\ngesturezoom &#8211; \uff08\u4ec5\u5f53boxzoom =\u771f\u5b9e\uff0c\u4f7f\u7528\u89e6\u6478\u8bbe\u5907\uff09\u4e0a\u7f29\u653e\u6846\u6fc0\u6d3b\u65f6\uff0c\u95f4\u8ddd\u8f93\u51fa\/\u8f93\u5165\uff08\u9ed8\u8ba4\uff1atrue\uff09<br \/>\ngrabcursorenabled\uff0c\u663e\u793a\u201c\u62a2\u201d\u56fe\u6807\u7684div touchbehavior = true\u65f6\uff0c\uff08\u9ed8\u8ba4\uff1atrue\uff09<br \/>\nautohidemode\uff0c\u5982\u4f55\u9690\u85cf\u6eda\u52a8\u6761\u7684\u4f5c\u54c1\uff0c\u771f=\u9ed8\u8ba4\/\u201c\u5149\u6807\u201d=\u53ea\u8fdb\u6e38\u6807\u9690\u85cf\/ false =\u4e0d\u9690\u85cf<br \/>\n\u80cc\u666f\uff0cCSS\u6539\u53d8\u8f68\u9053\u7684\u80cc\u666f\u4e0b\uff0c\u9ed8\u8ba4\u4e3a\u201c\u201d<br \/>\n\u5728\u52a0\u8f7d\u4e8b\u4ef6iframeautoresize\uff0cAUTORESIZE\u7684iframe\uff08\u9ed8\u8ba4\uff1atrue\uff09<br \/>\ncursorminheight\uff0c\u8bbe\u7f6e\u5728\u50cf\u7d20\u7684\u6700\u5c0f\u5149\u6807\u9ad8\u5ea6\uff08\u9ed8\u8ba4\u503c\uff1a20\uff09<br \/>\npreservenativescrolling\uff0c\u60a8\u53ef\u4ee5\u6eda\u52a8\u672c\u673a\u53ef\u6eda\u52a8\u533a\u57df\u7528\u9f20\u6807\uff0c\u5192\u6ce1\u9f20\u6807\u6eda\u8f6e\u4e8b\u4ef6\uff08\u9ed8\u8ba4\uff1atrue\uff09<br \/>\nrailoffset\uff0c\u60a8\u53ef\u4ee5\u6dfb\u52a0\u62b5\u6d88\u9876\u90e8\/\u5de6\u8fb9\u7684\u8f68\u9053\u4f4d\u7f6e\uff08\u9ed8\u8ba4\uff1afalse\uff09<br \/>\nbouncescroll\uff0c\u4f7f\u6eda\u52a8\u5f39\u8df3\u5728\u5185\u5bb9\u7ed3\u5c3e\u4f5c\u4e3a\u79fb\u52a8\u50cf\uff08\u4ec5HW ACCELL\uff09\uff08\u9ed8\u8ba4\uff1afalse\uff09<br \/>\nspacebarenabled\uff0c\u4f7f\u5411\u4e0b\u7ffb\u9875\u65f6\uff0c\u7a7a\u683c\u952e\u5df2\u7ecf\u6309\u4e0b\u6eda\u52a8\uff08\u9ed8\u8ba4\uff1atrue\uff09<br \/>\nrailpadding\uff0c\u8bbe\u7f6e\u586b\u5145\u4e3a\u94c1\u8def\u5427\uff08\u9ed8\u8ba4\u503c\uff1a{\u9876\uff1a0\uff0c\u53f3\uff1a0\uff0c\u5de6\uff1a0\uff0c\u4e0b\uff1a0}\uff09<br \/>\ndisableoutline\uff0c\u5bf9\u4e8echrome\u6d4f\u89c8\u5668\uff0c\u505c\u7528\u5927\u7eb2\uff08\u6a59\u8272hightlight\uff09\u9009\u62e9\u5177\u6709nicescroll\u4e00\u4e2adiv\uff08\u9ed8\u8ba4\uff1a<br \/>\ntrue\uff09\u65f6\uff0c<br \/>\nhorizrailenabled\uff0cnicescroll\u53ef\u4ee5\u7ba1\u7406\u6c34\u5e73\u6eda\u52a8\uff08\u9ed8\u8ba4\uff1atrue\uff09<br \/>\nrailalign\uff0c\u53d6\u5411\u5782\u76f4\u5bfc\u8f68\uff08defaul\uff1a\u201c\u53f3\u201d\uff09<br \/>\nrailvalign\uff0c\u5bf9\u9f50\u6c34\u5e73\u5bfc\u8f68\uff08defaul\uff1a\u201c\u5e95\u90e8\u201d\uff09<br \/>\nenabletranslate3d\uff0cnicescroll\u53ef\u4ee5\u4f7f\u7528CSS\u8f6c\u6362\u4e3a\u6eda\u52a8\u5185\u5bb9\uff08\u9ed8\u8ba4\uff1atrue\uff09<br \/>\nenablemousewheel\uff0cnicescroll\u53ef\u4ee5\u7ba1\u7406\u7684\u9f20\u6807\u6eda\u8f6e\u4e8b\u4ef6\uff08\u9ed8\u8ba4\uff1atrue\uff09<br \/>\nenablekeyboard\uff0cnicescroll\u53ef\u4ee5\u7ba1\u7406\u952e\u76d8\u4e8b\u4ef6\uff08\u9ed8\u8ba4\uff1atrue\uff09<br \/>\nsmoothscroll\uff0c\u6eda\u52a8\u81ea\u5982\u79fb\u52a8\uff08\u9ed8\u8ba4\uff1atrue\uff09<br \/>\nsensitiverail\uff0c\u70b9\u51fb\u8f68\u9053\u4e0a\u8fdb\u884c\u6eda\u52a8\uff08\u9ed8\u8ba4\uff1atrue\uff09<br \/>\nenablemouselockapi\uff0c\u53ef\u4ee5\u7528\u9f20\u6807\u8bf4\u660e\u9501\u7684API\uff08\u5bf9\u8c61\u62d6\u52a8\u540c\u6837\u7684\u95ee\u9898\uff09\uff08\u9ed8\u8ba4\uff1atrue\uff09<br \/>\n\u7528\u4e8e\u5149\u6807\u5728\u50cf\u7d20cursorfixedheight\uff0c\u8bbe\u7f6e\u56fa\u5b9a\u7684\u9ad8\u5ea6\uff08\u9ed8\u8ba4\uff1afalse\uff09<br \/>\nhidecursordelay\uff0c\u8bbe\u7f6e\u5728\u5fae\u79d2\u6de1\u51fa\u6eda\u52a8\u6761\u7684\u5ef6\u8fdf\u65f6\u95f4\uff08\u9ed8\u8ba4\u503c\uff1a400\uff09<br \/>\n\u5728\u5bf9\u65b9\u5411\u9501\u5b9a\u6fc0\u6d3b\u50cf\u7d20directionlockdeadzone\uff0c\u6b7b\u533a\uff08\u9ed8\u8ba4\u503c\uff1a6\uff09<br \/>\nnativeparentscrolling\uff0c\u68c0\u6d4b\u5185\u5bb9\u5e95\u90e8\uff0c\u5e76\u8ba9\u5bb6\u957f\u6765\u6eda\u52a8\uff0c\u4f5c\u4e3a\u539f\u751f\u6eda\u52a8\u505a\uff08\u9ed8\u8ba4\uff1atrue\uff09<br \/>\nenablescrollonselection\uff0c\u542f\u7528\u81ea\u52a8\u6eda\u52a8\u7684\u5185\u5bb9\u65f6\uff0c\u9009\u62e9\u6587\u672c\uff08\u9ed8\u8ba4\uff1atrue\uff09<\/p>\n<p><a href=\"https:\/\/sdeno.com\/wp-content\/uploads\/2014\/03\/jquery.nicescroll.js\">jquery.nicescroll<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u914d\u7f6e\u53c2\u6570 \u5f53\u8c03\u7528\u201cniceScroll\u201d\u4f60\u53ef\u4ee5\u4f20\u9012\u4e00\u4e9b\u53c2\u6570\u6765\u5b9a\u5236\u89c6\u89c9\u65b9\u9762\uff1a cursorcolor &#038;#821 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[],"class_list":["post-2870","post","type-post","status-publish","format-standard","hentry","category-jquery"],"_links":{"self":[{"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/posts\/2870","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sdeno.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2870"}],"version-history":[{"count":0,"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/posts\/2870\/revisions"}],"wp:attachment":[{"href":"https:\/\/sdeno.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2870"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sdeno.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2870"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sdeno.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2870"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}