Why shouldn't I use Flash?

前端 未结 16 3520
被撕碎了的回忆
被撕碎了的回忆 2021-02-19 15:16

I\'ve heard many times that I should avoid flash for my website. Yet no one has told me a good reason for this. I\'ve searched for reasons and I see many that are not true (such

16条回答
  •  南旧
    南旧 (楼主)
    2021-02-19 15:46

    Flash is annoying because:

    • Users have to have the plugin
    • Context menus don't work right (you get the Flash context menu instead of the browser's)
    • Mouse gestures fail when started over a Flash object

    For audio, I'd say Flash is probably the best cross-platform method though. If you're really hardcore, you could nest it inside an tag, so that people with a non-IE browser don't need Flash. I believe it works something like:

    
    

    Any browser that understands the tag should ignore anything inside it.

    Disclaimer: It's probably not worth the effort. Everyone has Flash, and as long as you're not using it for your layout, you should be fine.

提交回复
热议问题