2013-04-03 92 views
2

我正在开发移动版网页。我正在使用带有两个浏览器的Symbian手机进行测试。默认的浏览器工作正常,但我与Opera Mobile有问题。当我在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>"; 
    ?> 

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

任何帮助将不胜感激。

回答

2

加入这个在您的<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> 
+0

感谢名单再次注意到了,我依然在这个平台上新 – maponda1 2013-04-04 03:47:07

相关问题