在Opera Mobile中打开网页时,为什么会放大网页? [英] Why are my web pages zoomed in when I open them in Opera Mobile?
问题描述
我正在开发网页的移动版本.我正在用带有两个浏览器的Symbian手机进行测试.默认浏览器运行正常,但是Opera Mobile出现问题.
I am developing a mobile version of 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 Mobile.
每次加载页面时,它都会加载放大的页面,而不是适合屏幕大小.这甚至发生在像这样的简单页面中:
Every time a page loads, it loads zoomed in rather than being fit the screen. This even happens in a simple page like this:
<?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>";
?>
加载页面时是否有任何方法使页面适合屏幕,而不是放大页面?
任何帮助将不胜感激.
推荐答案
将此添加到您的<head>
元素中:<meta content='width=device-width, initial-scale=1, maximum-scale=1' name='viewport' />
Add this in your <head>
element: <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>
这篇关于在Opera Mobile中打开网页时,为什么会放大网页?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!