2
出于某种原因,无论何时,当我使用实际的移动设备在手机模板上打开其中一个页面时,它会自动放大页面。有什么方法可以确保页面始于100%?我的模板页面会在移动设备上自动缩放
这是我的代码。
<html>
<head>
<style>
li{
line-height:3em;
}
ad{
padding: 0 0 0 4em;
}
n{
margin:10;
}
p {
font-size: 130%;
}
a:link { color: white; text-decoration: none}
mm {
float: left;
width: 100%;
padding: 0;
margin:0;
list-style-type: none;
}
m {
width: 6em;
text-decoration: none;
color: white;
margin:10px;
background-color: #243d77;
padding: 0.9em 0.6em;
}
</style>
<title>[Content]</title>
<link type="text/css" rel="stylesheet" href="/stylesheets/[Content].css" />
<script type="text/javascript" src="/js/jquery.min.js"></script>
<script type="text/javascript" src="/js/pngFix/jquery.pngFix.js"></script>
<script type="text/javascript" src="/js/jquery.cycle.all.latest.js"></script>
<script type="text/javascript">
shuffle = function(o){ //v1.0
for(var j, x, i = o.length; i; j = parseInt(Math.random() * i), x = o[--i], o[i] = o[j], o[j] = x);
return o;
};
$(document).ready(function() {
$(document).pngFix();
});
</script>
</head>
<body>
<div id="container">
<div id="header">
<div class="logo">
<a href="/index.htm">
<img alt="" width="189" height="69" src="[Content]" />
</a>
</div>
<div class="loginlink">
<a href="client-login.htm">
Client Access Click Here
</a>
</div>
</div>
<div id="subheader">
<div style="clear: left;"></div>
<div id="wrapper1">
<div style="text-align: center;">
</div>
<div id="wrapper2">
<div style="text-align: center;">
</div>
<div id="maincol">
<div style="text-align: center;">
</div>
<div id="leftcol">
<div style="text-align: center;">
<mm>
<li>
<m>
<n>
<a href="#">
Home
</a>
</n>
</m>
</li>
<li></li>
<li>
<m>
<n>
<a href="#">
What We Do
</a>
</n>
</m>
</li>
<li></li>
<li>
<m>
<n>
<a href="#">
Why Work With Us
</a>
</n>
</m>
</li>
<li></li>
<li>
<m>
<n>
<a href="#">
How We Provide Value
</a>
</n>
</m>
</li>
<li></li>
<li>
<m>
<n>
<a href="#">
Who We Work With
</a>
</n>
</m>
</li>
<li></li>
<li>
<m>
<n>
<a href="#">
Results We've Achieved
</a>
</n>
</m>
</li>
<li></li>
<li>
<m>
<n>
<a href="#">
Where We Service
</a>
</n>
</m>
</li>
<li></li>
<li>
<m>
<n>
<a href="#">
[Content]
</a>
</n>
</m>
</li>
<li></li>
<li>
<m>
<n>
<a href="#">
Get In Touch
</a>
</n>
</m>
</li>
</mm>
</div>
<mm>
</mm>
</div>
</div>
{tag_pagecontent}
</div>
</div>
</div>
<div style="clear: both;"></div>
<div id="footer">
<p>© 2014 [Content]</p>
<p>
</p>
<ul>
<li><a href="/sitemap.htm">Site Map</a></li>
<li><a href="/disclaimer.htm">Disclaimer</a></li>
<li><a href="/privacy.htm">Privacy Policy</a></li>
</ul>
</div>
</div>
</body>
</html>
你试过添加这个吗? – Sunand 2014-09-04 02:47:42
你真的不应该用' 来做你的间距,你应该使用CSS。 – RevanProdigalKnight 2014-09-04 02:58:04