2

我正在开发网页的移动版本。我正在使用带有两个浏览器的 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>";
    ?>

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

任何帮助将不胜感激。

4

1 回答 1

4

<head>在你的元素中添加这个:<meta content='width=device-width, initial-scale=1, maximum-scale=1' name='viewport' />

<html>
    <head>
        <meta content='width=device-width, initial-scale=1, maximum-scale=1' name='viewport' />
    </head>
    <body>
        <p>Lorem ipsum ...</p>
    </body>
</html>
于 2013-04-03T22:56:07.610 回答