首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > CSS >

怎么把PC版网页变成手机版

2013-01-14 
怎样把PC版网页变成手机版html xmlnshttp://www.w3.org/1999/xhtmlheadmeta nameviewport cont

怎样把PC版网页变成手机版
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta name="apple-mo                          bile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="apple-touch-fullscreen" content="yes"/>
<meta content="telephone=no" name="format-detection" /> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="css/style.css" rel="stylesheet" type="text/css" /> 
<title>sales</title>
</head>
<body>
<a href="index.html"><img src="images/button.png" class="top_btn1" /></a>
<a href="#"><img src="images/button3.png"  class="top_btn2" /></a>

<div data-role="page" data-url="/index.html" tabindex="0" style="min-height: 551px;" id="bottom-sales">

<div data-role="header" role="banner" >
<img src="images/head2.jpg" /></div>

<div data-role="content" role="main">

<div id="div1">
<img src="images/new.png" class="top_new" />
<a href="info.html"><img src="images/58332.png" /></a>
</div>
<div id="div2">
<a href="info.html"><img src="images/6360.png" /></a>
</div>
<div id="div3">
<a href="info.html"><img src="images/87094.png" /></a>
</div>
<div id="div4">
<a href="info.html"><img src="images/13782.png" /></a>
</div>
<div id="div5">
<a href="info.html"><img src="images/88132.png" /></a>
</div>
<div id="div6">
<img src="images/new.png" class="top_new" />
<a href="info.html"><img src="images/6320.png" /></a>
</div>
<div id="div7">
<a href="info.html"><img src="images/7594.png" /></a>
</div>
<div id="div8">
<a href="info.html"><img src="images/13881.png" /></a>
</div>
<div id="div9">
<a href="info.html"><img src="images/66232.png" /></a>
</div>
<div id="div10">
<a href="info.html"><img src="images/176.png" /></a>
</div>
<div id="div11">
<a href="info.html"><img src="images/87006.png" /></a>
</div>
<div id="div12">
<a href="info.html"><img src="images/112.png" /></a>
</div>

</div> 

</div>
</body>
</html>
[解决办法]
javascript screen size to scale the page size

热点排行