【问题标题】:Why are my web pages zoomed in when I open them in Opera Mobile?为什么我在 Opera Mobile 中打开网页时会放大网页?
【发布时间】:2013-04-03 21:56:33
【问题描述】:

我正在开发网页的移动版本。我正在使用带有两个浏览器的 Symbian 手机进行测试。默认浏览器工作正常,但我在使用 Opera Mobile 时遇到问题。

每次加载页面时,它都会放大加载,而不是适合屏幕。这甚至发生在像这样的简单页面中:

    <?php
        echo    "<p>Guys I am developing a mobile version web pages, I am testing with a symbian phone with two browsers. The default browser is working properly but I am having problem with Opera Mibile, each time it loads a page a page that is zoomed in - instead of loading a page that just fits the screan. even a simple page like this one</P>
                <p>Is there anything i should include in the in my code to tell it to load a page that needs not to be zoomed. Will greatly apreciated, have spend almost the whole day on google?</p>";
    ?>

有什么方法可以让页面在加载时适合屏幕,而不是让它们放大加载?

任何帮助将不胜感激。

【问题讨论】:

    标签: php html mobile opera-mini opera-mobile


    【解决方案1】:

    将此添加到您的 &lt;head&gt; 元素中:&lt;meta content='width=device-width, initial-scale=1, maximum-scale=1' name='viewport' /&gt;

    <html>
        <head>
            <meta content='width=device-width, initial-scale=1, maximum-scale=1' name='viewport' />
        </head>
        <body>
            <p>Lorem ipsum ...</p>
        </body>
    </html>
    

    【讨论】:

    • 再次感谢,注意到了,我还是这个平台上的新手
    猜你喜欢
    • 2011-02-15
    • 2011-04-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多