HOW TO FIT IFRME IN MOBILE BROWSER?

anil babu

Total Post:19

Points:133
Posted by  anil babu
 1763  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. Chris Anderson

    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

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!