Quantcast
Channel: Internet Explorer Web Development forum
Viewing all articles
Browse latest Browse all 3527

IE10 : The Iframe does not adjust its Precentage (100%) width after i hide it's parent.

$
0
0

I create a simple Sample to show the problem in IE 10. After Site loads the iframe has 100 % width of the table which is also set to 100% width. Click button "Hide" to hide the table, after that click the button "Show" to show the table again. Now the problem is that the width of the iframe is not 100% anymore.

In IE 9 this sample works correct. Can anybody help me with this problem. Or is this an known issue of IE 10 ?

<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head><title></title></head><script type="text/javascript">

        function HideMe() {
            document.getElementById('MyTable').style.display = 'none';
        }

        function ShowMe() {
            document.getElementById('MyTable').style.display = 'block';
        }

</script><body><table id="MyTable" style="border: medium solid #FF00FF; width: 100%;"><tr><td><iframe id="MyIFrame" src="http://www.microsoft.com" style="border-style: none; width: 100%"></iframe></td></tr></table><input id="Hide" type="button" onclick="HideMe();" value="Hide me" /><input id="Show" type="button" onclick="ShowMe();" value="Show me" /></body></html>


Viewing all articles
Browse latest Browse all 3527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>