Why did video width= become width= "100" pixels under IE 9?

<video id="myVideo" width="100%" controls preload>
    <source src="video/test.mp4" type="video/mp4" codecs="avc1.42E01E,mp4a.40.2">
</video>

other mainstream browsers are fine, adapting to the width of the parent element, but only 100 pixels wide in IE9. Wait online


< video height='50%' width='50%' >
change to
< video style='height:50%; width:50%;' >
or write to css.


is the width of video's parent container when IE9 sets display:inline to video


ie9?


this is the bug, of IE9. Please set it in style mode. ideo-tag-not-supporting-relative-width-height" rel=" nofollow noreferrer "> Please see this post on Stackoverflow a few years ago

Menu