首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏c#开发者

    Infinite Scrolling in UIScrollView

    - (void)viewDidLoad {     [super viewDidLoad];          [theScrollView setContentSize:CGSizeMake(3 * theScrollView.bounds.size.width, theScrollView.bounds.size.height)];     [theScrollView setPagingEnabled:YES];          CGRect aFrame = theScrollView.bound

    67560发布于 2018-04-12
  • 来自专栏walterlv - 吕毅的博客

    Support Horizontal Scrolling of TouchPad in WPF Application

    Support Horizontal Scrolling of TouchPad in WPF Application 发布于 2017-11-23 14:09 As Microsoft never do well in touchpad, WPF application even doesn’t support horizontal scrolling of Also, WPF uses MouseWheel to handle vertical scrolling, not a particular method. This article contains my method to support horizontal scrolling of touchpad in a WPF application. By the way, Microsoft Sculpt Comfort Mouse support horizontal scrolling also, and my codes above here

    86210发布于 2018-09-18
  • 来自专栏守候书阁

    ios上-webkit-overflow-scrolling与position的bug

    如上图,.fb-box是一个大div,包含着页面上的所有元素,包括所看到的那个弹窗.dialog-img,并且设置了height:100%;-webkit-overflow-scrolling:touch 定位需要,-webkit-overflow-scrolling:touch;也需要。 ?

    66410发布于 2018-08-22
  • 来自专栏李维亮的博客

    网页在Safari快速滚动和回弹的原理: -webkit-overflow-scrolling : touch;的实现

    要实现这个效果很简单,只需要加一行css代码即可: -webkit-overflow-scrolling : touch; 可用以下网页测试: <! overflow-y : auto; background-color : cyan; -webkit-overflow-scrolling 如果把-webkit-overflow-scrolling那行注释掉,就会发现滚动得很慢。 实际上,Safari真的用了原生控件来实现,对于有-webkit-overflow-scrolling的网页,会创建一个UIScrollView,提供子layer给渲染模块使用。 从前端开发的角度讲,只需要知道CSS的属性-webkit-overflow-scrolling是真的创建了带有硬件加速的系统级控件,所以效率很高。

    1.7K30发布于 2021-07-09
  • 来自专栏岳泽以博客

    记录:关于苹果端IOS系统webkit-overflow-scrolling-touch不显示元素的兼容性问题

    项目中给某个带滚动条的元素添加了 overflow:scroll以及 -webkit-overflow-scrolling: touch; -webkit-overflow-scrolling: touch ;MDN定义 -webkit-overflow-scrolling 属性控制元素在移动设备上是否使用滚动回弹效果. auto: 使用普通滚动, 当手指从触摸屏上移开,滚动会立即停止。 这个问题很早就存在,现在也一直存在,而且 Android 之所以不存在这个现象,是因为 Android 压根不支持 -webkit-overflow-scrolling: touch; 这个属性,而 ios 存在问题,恰恰是因为 ios 支持了这个属性,但是它处理的机制是: 如果一个元素同时存在 -webkit-overflow-scrolling: touch; 和 overflow:scroll属性, 解决办法:只需要在公共样式加入下面这行代码 *{ -webkit-overflow-scrolling: touch; } 但是这种方法,如果元素过多过杂的情况下,可能会出现一些其他兼容性问题,目前没有找到更好的解决办法

    1.8K20编辑于 2023-03-30
  • 来自专栏程序员开发工具

    NestedScrolling 机制深入解析

    scrolling child 在滑动之前,会通过 NestedScrollingChildHelper 查找是否有响应的 scrolling parent,如果有的话,会先询问scrolling parent 是否需要先于scrolling child 滑动,如果需要的话,scrolling parent 进行相应的滑动,并消费一定的距离; 接着scrolling child 进行相应的滑动,并消耗一定的距离值 dx,dy scrolling child 滑动完之后,询问scrolling parent 是否还需要继续进行滑动,需要的话,进行相应的处理。 滑动之前,提供机会让scrolling parent 先于scrolling child滑动。 在 Scrolling Child 停止滑动的时候,会调用 Scrolling Parent 的这个方法。

    1K30发布于 2018-09-17
  • 来自专栏李维亮的博客

    iframe关于滚动条的去除和保留(转载)

    一:去掉全部的滚动条 第一个方法: iframe 有一个scrolling属性,它有 auto , yes , no 这三个值。 scrolling : auto -----在需要的时候滚动条出现 scrolling : yes ------始终显示滚动条 scrolling : no -- -----始终隐藏滚动条 当设置 scrolling : no 时,全部的滚动条就没有了。 通过检测,我发现当 scrolling = " auto " 或者 " yes " 时,如果设置了 body,那么就会使用body里的设置;当 scrolling = " no " 时,不管body设置了什么 ,都会使用 scrolling 的设置,即全部的滚动条都被去掉了。

    6.8K20发布于 2021-07-08
  • 来自专栏android技术

    Android--CoordinatorLayout源码分析及NestedScrolling机制

    * *

    Perform cleanup after a nested scrolling operation. once the edge of inner * scrolling content is reached. * to consume the scroll before the nested scrolling child does. operation to the current nested scrolling parent operation to the current nested scrolling parent

    90630发布于 2020-07-03
  • 来自专栏洞明学问

    iframe 滚动条

    去掉全部滚动条 设置scrolling属性 scrolling: auto // 在需要的时候显示滚动条 scrolling: yes // 始终显示滚动条 scrolling: no //始终隐藏滚动条 hidden;} /* 去看右边的滚动条,保留下面的 */ body {overflow-x: hidden; overflow-y: auto;} /* 去掉底下的滚动条,保留右边 */ 代码优先级 如果 scrolling : auto 或者 scrolling:yes 会依据 body 的值显示或者隐藏;如果 scrolling:no 无论什么设置都不会再显示滚动条。

    5.1K20发布于 2019-10-30
  • 来自专栏业余草

    jQuery Mobile的学习 jQuery Mobile工具栏、标题栏、页脚栏的定位学习

    Some text to enable scrolling..Some text to enable scrolling..Some text to enable scrolling ..Some text to enable scrolling..Some text to enable scrolling. to enable scrolling..Some text to enable scrolling..Some text to enable scrolling..Some text to enable scrolling..Some text to enable scrolling

    2.7K50发布于 2019-01-21
  • 来自专栏全栈程序员必看

    pycharm清缓存_pycharm安装包很慢

    " option. # # * Enables handling of pixel-perfect scrolling events. # Currently this mode is available " option. # # * Enables interpolation of scrolling input (scrollbar, mouse wheel, touchpad, keys, etc # "idea.true.smooth.scrolling.interpolation.mouse.wheel.delay.min" - minimum initial delay for . # This feature can be toggled via "idea.true.smooth.scrolling.dynamic.scrollbars" option. #-------- --------------------------------------------------------------- #idea.true.smooth.scrolling=true #--

    3.6K20编辑于 2022-09-27
  • 来自专栏大前端(横向跨端 & 纵向全栈)

    移动端页面在IOS里滑动不顺畅解决办法

    这时候可以使用-webkit-overflow-scrolling:touch这个属性,让滚动条产生滚动回弹的效果,就像ios原生的滚动条一样流畅 ? ? 简单说明一下: -webkit-overflow-scrolling :控制元素在移动设备上是否使用滚动回弹效果。 auto:使用普通滚动, 当手指从触摸屏上移开,滚动会立即停止。 在safari上,使用了-webkit-overflow-scrolling:touch之后,页面偶尔会卡住不动。 解决问题的方法: 第一步:将使用-webkit-overflow-scrolling的元素的定位取消或手动改成position:static; 第二步:将使用-webkit-overflow-scrolling

    2.6K10发布于 2020-11-26
  • 来自专栏Golang语言社区

    【Go 语言社区】iframe去边框,无边框,使用大全

    you page’s url” width=”100″ height=”30″ frameborder=”no” border=”0″ marginwidth=”0″ marginheight=”0″ scrolling you page's url" width="750" height="30" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling 例如: <iframe frameborder=0 width=170 height=100 marginheight=0 marginwidth=0 scrolling=no src="move-ad.htm | right ] 对齐方式  FRAMEBORDER=[ 1 | 0 ] 柜架边框  MARGINWIDTH=Pixels 左右空出宽度  MARGINHEIGHT=Pixels 上下空出的高度  SCROLLING   <iframe scrolling="no"></iframe>  是否有滚动条(yes,no,auto)  src  <iframe src="girl.gif"></iframe>  指定iframe

    3.1K70发布于 2018-03-19
  • 来自专栏练小习的专栏

    ios下滚动条默认显示

    webkit-scrollbar-track-pieceis the top-most layer of the the progress bar not covered by the draggable scrolling element (thumb) ::-webkit-scrollbar-thumbaddresses the draggable scrolling element that resizes depending ::-webkit-scrollbar-track-piece的背景颜色情况下,如果不设置::-webkit-scrollbar宽度(高度),滚动条是不会出现的 2、-webkit-overflow-scrolling : touch;属性让ios默认不显示滚动条 -webkit-overflow-scrolling属性是定义是否使用回弹效果;默认值是auto;当-webkit-overflow-scrolling设置为 margin: 20px; box-sizing: border-box; font-size: 12px; resize: none; -webkit-overflow-scrolling

    6.2K60发布于 2017-12-29
  • 来自专栏技术指北

    利用 cloudflare一分钟生成一个导航站

    DOCTYPE html> <head> <meta charset="UTF-8"><code style="border-radius: 0px; -webkit-overflow-<em>scrolling</em> seller : ''}</span></code><code style="border-radius: 0px; -webkit-overflow-scrolling: touch; text-align

    82500编辑于 2024-12-25
  • 来自专栏前端印象

    手把手带你10分钟手撸一个简易的Markdown编辑器

    === 0) scrolling = 1; // 记录主动触发滚动的区域 if(scrolling === 2) return; // 当前是「展示区」主动触发的滚动, === 0) scrolling = 2; if(scrolling === 1) return; // 当前是「编辑区」主动触发的滚动,因此不需要再驱动编辑区去滚动 === 0) scrolling = 1; if(scrolling === 2) return; driveScroll(scale, showRef.current) } else if(block === 2) { if(scrolling === 0) scrolling = 2; === 0) scrolling = 1; if(scrolling === 2) return; driveScroll(scale,

    2.5K10发布于 2021-06-09
  • 来自专栏全栈程序员必看

    iframe参数详解

    you page’s url” width=”100″ height=”30″ frameborder=”no” border=”0″ marginwidth=”0″ marginheight=”0″ scrolling you page’s url” width=”750″ height=”30″ frameborder=”no” border=”0″ marginwidth=”0″ marginheight=”0″ scrolling iframe> runat=”server” 这个最好加上Iframe跳转 asp.net 可在当前iframe中跳转 src 链接到的地址URl frameborder 是否显示边框(0无边框 1有边框) scrolling 例如: <iframe frameborder=0 width=170 height=100 marginheight=0 marginwidth=0 scrolling=no src=”move-ad.htm <iframe scrolling=”no”></iframe> 是否有滚动条(yes,no,auto) src <iframe src=”girl.gif”></iframe>

    3.9K30编辑于 2022-09-14
  • 来自专栏网络收集

    html多媒体

    (二)、设置浮动框架是否显示滚动条scrolling 对于浮动框架iframe的的滚动条,我们可以使用scrolling属性来控制。scrolling属性有3种情况:根据需要显示、总是显示和不显示。 语法: <iframe src="浮动框架的源文件" width="浮动框架的宽" height="浮动框架的高" scrolling="取值"></iframe> 说明: scrolling属性取值如下 : scrolling属性值 scrolling属性值 说明 auto 默认值,整个表格在浏览器页面中左对齐 yes 总是显示滚动条,即使页面内容不足以撑满框架范围,滚动条的位置也预留 ">

    绿叶学习网

    <iframe src="http://www.baidu.com" width="400px" height="300px" scrolling 大家可以在“在线测试工具”中修改一下scrolling属性值,看看不同属性值下有什么不同的效果。 浮动框架,说白了就是在一个页面嵌入一个或多个子页面,这样大家好理解了吧。

    1.8K30编辑于 2022-05-17
  • 来自专栏程序员开发工具

    【原理篇】WebView 实现嵌套滑动,丝滑般实现吸顶效果,完美兼容 X5 webview

    对于一个 ACTION_MOVE 动作 scrolling child 在滑动之前,会通过 NestedScrollingChildHelper 查找是否有响应的 scrolling parent,如果有的话 ,会先询问scrolling parent 是否需要先于scrolling child 滑动,如果需要的话,scrolling parent 进行相应的滑动,并消费一定的距离; 接着scrolling child 进行相应的滑动,并消耗一定的距离值 dx,dy scrolling child 滑动完之后,询问scrolling parent 是否还需要继续进行滑动,需要的话,进行相应的处理。 滑动结束之后,Scrolling child 会停止滑动,并通过 NestedScrollingChildHelper 通知相应的 Scrolling Parent 停止滑动。 int scrolledByMe = getScrollY() - oldScrollY; unconsumed -= scrolledByMe; // Nested Scrolling

    1.6K10编辑于 2022-10-05
  • 来自专栏全栈程序员必看

    iframe参数[通俗易懂]

    src=”test.jsp” width=”100″ height=”50″ frameborder=”no” border=”0″ marginwidth=”0″ marginheight=”0″ scrolling you page’s url” width=”750″ height=”30″ frameborder=”no” border=”0″ marginwidth=”0″ marginheight=”0″ scrolling runat=”server” 这个最好加上Iframe跳转 asp.net 可在当前iframe中跳转 src 链接到的地址URl frameborder 是否显示边框(0无边框 1有边框) scrolling 比如: <iframe frameborder=0 width=170 height=100 marginheight=0 marginwidth=0 scrolling=no src=”move-ad.htm <iframe scrolling=”no”></iframe> 是否有滚动栏(yes,no,auto) src <iframe src=”girl.gif”></iframe>

    4.7K10编辑于 2022-07-18
领券