iOS 开发实用技术导航
NSHipster 中文版
http://nshipster.cn/
cocos2d 开源 2D 游戏引擎
http://www.cocos2d-iphone.org/
CocoaPods
http://cocoapods.org/
Google Analytics for Mobile 统计解决方案
http://code.google.com/mobile/analytics/
WWDC
https://developer.apple.com/wwdc/
Design Guides and Resources
https://developer.apple.com/design/
Transcripts of WWDC sessions
http://asciiwwdc.com
Cocoa with Love
http://cocoawithlove.com/
Cocoa Dev Central
http://cocoadevcentral.com/
NSHipster
http://nshipster.com/
Style Guides
Google Objective-C Style Guide
NYTimes Objective-C Style Guide
Useful Tools and Services
Charles Web Debugging Proxy
Smore
lhj2100
V2EX  ›  iDev

ios上的safari支持onmouseover事件吗...

  •  
  •   lhj2100 · Aug 12, 2011 · 7590 views
    This topic created in 5399 days ago, the information mentioned may be changed or developed.
    求解...最好能放个效果图
    10 replies    1970-01-01 08:00:00 +08:00
    shinyzhu
        1
    shinyzhu  
       Aug 12, 2011
    不支持。

    哪来的Mouse?
    lhj2100
        2
    lhj2100  
    OP
       Aug 12, 2011
    那若是web中有个元素当鼠标悬停在它上边时...弹出tip..这样的需求怎么办...
    shinyzhu
        3
    shinyzhu  
       Aug 12, 2011   ❤️ 1
    网速慢,链接现在附上:Safari Web Content Guide的Handling Events那一节有详细描述:
    http://developer.apple.com/library/safari/#documentation/AppleApplications/Reference/SafariWebContent/Introduction/Introduction.html
    shinyzhu
        4
    shinyzhu  
       Aug 12, 2011   ❤️ 1
    @lhj2100 在文档里有一节Make Elements Clickable介绍了一个办法,只能处理click事件,就是给原来mouseover, mouseout的地方再加一个click处理。
    ine181x
        5
    ine181x  
       Aug 12, 2011
    不要给专为触屏设计的网页上写mouseover事件。如果遇到mouseover,ios会转换成click 然后在这个范围内其他的click事件就要再多点击一次才能响应操作。lz可以试试fanfou的网页版在ipad中显示。
    mepine
        6
    mepine  
       Aug 12, 2011 via iPhone
    改變 tip 顯示方式的設計
    lushnis
        7
    lushnis  
       Aug 12, 2011
    楼主,在目前的 iOS 设备上,怎样实现 onmouseover(而不是 click)?
    chone
        8
    chone  
       Aug 12, 2011
    @lushnis 确实,什么东西"悬停"在button上算是mouseover? 指纹算么XD
    lushnis
        9
    lushnis  
       Aug 12, 2011
    @chone 目光 XD
    lhj2100
        10
    lhj2100  
    OP
       Aug 12, 2011
    @ine181x IOS应经彻底的的放弃了使用鼠标指针的概念 并不像其他使用在触控设备上的系统一样简单的将指针隐藏起来...
    @chone 这种情况用的很多啊 例如我在某文章中有一小段话是引用自其他的文章 我想注解一下。。那当鼠标悬停时 就弹出注解 很方便 很直观啊..

    最终决定使用类似 Lightbox 的方法 来弹出tip...
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3312 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 00:38 · PVG 08:38 · LAX 17:38 · JFK 20:38
    ♥ Do have faith in what you're doing.