0

I've got an .swf file embedded into my HTML, but it comes up too small. This is the code I used:

<embed src="example.com/file.swf" height="1136" width="640">

So the issue is that instead of showing properly and full sized, it's down to something like 150px in height and scaled accordingly.

Any ideas on how to fix this? I'm using the HTML5 doctype, of course.

Thanks, Ilian

4

2 に答える 2

0

問題は HTML5 に由来します... 私は同じ問題を抱えています。swf ( <embed align="middle" allowscriptaccess="sameDomain" height="100%" width="100%" pluginspage="http://www.adobe.com/go/getflashplayer" quality="high" src="flash/index.swf" type="application/x-shockwave-flash"></embed>) を埋め込むと、アニメーションが縮小しすぎます...

html5 doctype を削除し、代わりにこれを追加する必要がありました: <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">. この場合、アニメーションのサイズが 100% に変更されます。さらに、html5 Web サイトでアニメーションを表示するために、xhtml ページをサイズ変更可能な iframe に配置しました...良い解決策ではありませんが、効率的です:)

ただし、swfobject : http://code.google.com/p/swfobject/など、さらに多くのソリューションを見つけましたが、うまくいきませんでした。試してみたら、うまくいくかどうか教えていただけますか?

また、Flash はモバイル デバイスや % を含む html5 では動作しないこと、Web サイトに統合されたスクリプトに反応しないことをすべて付け加えたいと思います。Flash を完全に放棄する考えがますます高まっています。 ..

于 2014-02-09T19:38:14.880 に答える