简体   繁体   中英

Flash via iframe in Safari is breaking

I'm trying to load an iframe into a div via ajax. The iframe serves Flash content.

There are four divs (above each other) with the same Flash-through-iframe implementation, and I show and hide these divs to correspond with the user's navigation. This works well, except in Safari. I triple-checked my JavaScript that toggles the divs (using display: none and display: show ), but it doesn't work in Safari. Any help will be highly appreciated.

It seems to me like serving ajax-loaded Flash in an iFrame is a recipe for disaster to start with.

Without an example, all I can find a problem with is your use of display: show because show is not a valid value. Perhaps display: none and display: block instead?

CSS Display Property: http://www.w3schools.com/cssref/pr_class_display.asp

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM