How to fit Ifrme in mobile browser?

Total Post:18

Points:126
 2040  View(s)
Ratings:
Rate this:

I want to open that page in mobile browser that Iframe will fit that mobile browser

How can i do this one?

protected void Page_Load(object sender, EventArgs e)
        {
               String URL = http://www.aspforums.net/;
                 
 
              if (!String.IsNullOrEmpty(URL))
                    {
                        
                        I1.Attributes["src"] = URL;
                    }
}
<body >
    <form id="form1" runat="server">
    <div class="auto-height">
            <iframe id="I1" runat="server" name="I1" class="auto-height" frameborder="0">your browser does not support IFRAMEs</iframe>
    </div>   
    </form>
</body>
  1. Post:65

    Points:455
    Re: How to fit Ifrme in mobile browser?

    Hi,

    Can you describe your "auto-height" class here.
    You can use responsive layout to fit your screen to any browser whether it is mobile, tablet or desktop.

    Thanks.

Answer