overflow-touch:在 iOS Safari 上使用 overflow-y 的 Web 元素的简单通知覆盖,通知他们可

  • v7_485766
    了解作者
  • 42KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-06-14 19:03
    上传日期
溢出触摸 这是一种非常简单的方法,可以告诉使用 Safari 的 iPhone/iPod Touch/iPad(?) 用户,他们可以使用两根手指滚动浏览页面元素,否则在完整浏览器中将具有滚动条(overflow-y CSS 属性设置为除了没有之外的其他东西)。 用法 假设您没有为您的网站使用特别奇特的架构,只需将 repo 中的文件放入您的 webroot 并从您的 webroot 中的任何页面调用 setIosOverlay 函数。 该函数接受参数 element_id,它是您希望叠加层出现的元素的 DOM id。 例子 在您的<head> ,添加以下引用: [removed][removed] 在您的<body>末尾附近,在您要应用叠加层的元素声明之后的某个位置: <script typ
overflow-touch-master.zip
  • overflow-touch-master
  • images
  • two_finger_scroll.png
    38.8KB
  • overflow-touch.js
    2.9KB
  • README.markdown
    1.3KB
  • MIT-LICENSE.txt
    1.1KB
  • overflow-touch.css
    588B
内容介绍
Copyright (c) 2011 David Huerta, http://www.davidhuerta.me/ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
评论
    相关推荐