2013-04-03 88 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

相關問題