标签:
sliderBar.on("mousedown", function(event) { event.preventDefault(); isMouseDown = true; }); $(window).on(‘mousemove‘, function(event) { event.preventDefault(); distance = event.pageY - me.offset().top if (isMouseDown == true) { scrollY(distance) } }); $(window).on(‘mouseup‘, function() { isMouseDown = false; });
*{padding:0;margin:0;font:14px/1.8 "microsoft yahei";-moz-user-select:none;/**禁止选中文字*/} .box{position:relative;border:1px solid #d9d9d9;margin:0 auto;margin-top: 200px;overflow: hidden;} .content{ word-break:break-all;} p{margin-bottom:10px;text-indent:2em;} p+img{max-width:100%;margin:10px auto;display:block;}
标签:
原文地址:http://www.cnblogs.com/jone-chen/p/5441325.html