开发者

Easy Flash question - use ems for width?

开发者 https://www.devze.com 2022-12-17 11:57 出处:网络
Can I use ems for the width tag when embedding a flash object? I\'ve done some googling and it looks like it\'s just pixels and percentages 开发者_开发技巧but I want to double check with the stack ov

Can I use ems for the width tag when embedding a flash object?

I've done some googling and it looks like it's just pixels and percentages 开发者_开发技巧but I want to double check with the stack overflow community.


The size of an 'em' is only meaningful in the context of a typographical font size (eg in 12pt font, an em is 12 points, or 12 pixels at 72dpi). Since a flash object embedded in an HTML page doesn't really have a point size, it's hard to know how big an em should be... See wikipedia's description of an em.

That said, you should still be able to specify the width tag in ems, and the width will be calculated relative to the 'font-size' property of the element (or in some cases it's parent). I haven't tested this however, and it may vary between browsers.

See here for relative units in CSS.

0

精彩评论

暂无评论...
验证码 换一张
取 消