Sunday, 15 September 2013

css - Make a flash be a background in html(full screen) -



css - Make a flash be a background in html(full screen) -

i made 1920 * 1048 flash(for 16:9 screen),and embedded html like:

<div style="top:0;left:0;background-color:red;width:100%;height:100%;z-index:-10"> <iframe height="100%" width="100%" src="./img/bg.swf" frameborder=0 allowfullscreen> </iframe> </div>

here's question:

in 4:3 screen flash's width 100%,but there's white padding on top , bottom. seems flash must maintain aspect ratio.

is there way create flash total screen in 4:3 screen , 16:9 screen?

or css syntax:

background:url(...) center center

the image total screen, , in 4:3 screen display part of image.

try using * { margin: 0; padding: 0; } should prepare it. can body

html css flash

No comments:

Post a Comment