Internet Explorer 9 beta HTML5 tag doesn't support relative width / height?

Is it true that IE9 (Beta and Preview) do not support the relative width / height of the html5 video tag?

Chrome, Safari, and Firefox all take width = 50% fine, but IE9 seems to read it as 50px. (Video is displayed in all 4 browsers, so no problem).

I was wondering if this is a bug / function yet to be implemented or a permanent solution.

J.

+4
source share
3 answers

Did you try to set the height and width using CSS, not the attributes of an HTML element?

but not:

<video src='whatever' height='50%' width='50%'> 

you can try:

 <video src='whatever' style='height:50%; width:50%;'> 

... or, of course, put the styles in your separate CSS file.

+5
source

I just installed a candidate for IE9, and since I donโ€™t think of any changes, we can call it their permanent solution.

Just to be complete: <video width="100%" height="100%"></video>

Will be displayed as a width of 100 pixels in IE9. In recent versions of Chrome, FireFox, Safari and Opera, this will be displayed at 100% of the width of the parent div.

+1
source

I used CSS to create a tag for width: 100% and height: 100%. I tried IE9 Beta and it seemed to work.

+1
source

Source: https://habr.com/ru/post/1339192/


All Articles