Klaus,
In this embed code
|
Quellcode
|
1
|
embedpano({swf:"krpano.swf", xml:"pano.xml", target:"pano",id:"swfobject"});
|
The default height and width of 100% are applied to the dynamically embedded element with id swfobject. When embedding flash, the height and width are set using the height and width attribute of the embed tag. This can be overridden by an external style sheet.
However, for HTML5 player, the element with id swfobject is a div so the height and width are set using the style attribute of the div tag instead. External CSS cannot override this (except with !important, as Sachs suggested).
I have two different style sheets for my page that i am using. In one of them, I set the height and width of swfobject to 100%, but for the other, I needed to set the width and height to pixel values instead. This worked when embedding flash but not for the html5 player. I ended up working around this by wrapping it all in another div before sacha mentioned !important.