码迷,mamicode.com
首页 > 移动开发 > 详细

一个有用的手机页面模版

时间:2015-07-09 21:24:53      阅读:146      评论:0      收藏:0      [点我收藏+]

标签:

C#版:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="m_index.aspx.cs" Inherits="m_index" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />   
    <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" />   
    <meta name="apple-mobile-web-app-c  apable" content="yes" />   
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />   
    <meta name="format-detection" content="telephone=no" />  
    <title>测试</title>
     
</head>
<body>
    <form id="form1" runat="server">
      <div style="margin: 0px; padding: 5px; border: 1px solid rgb(204, 204, 204); max-width: 100%; font-size: 16.363636016845703px; font-family: 宋体; line-height: 26.666667938232422px;  word-wrap: break-word !important; box-sizing: border-box !important;">
          <p>在这里添加你的代码</p>
     </div>
    </form>
</body>
</html>

 

HTML版:

<!DOCTYPE html>
<html>    
<head>    
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />   <meta http-equiv="X-UA-Compatible" content="IE=edge" />   
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" />   
<meta name="apple-mobile-web-app-c  apable" content="yes" />   
<meta name="apple-mobile-web-app-status-bar-style" content="black" />   <meta name="format-detection" content="telephone=no" />   

<title>测试</title>
</head>

<body >
<div style="margin: 0px; padding: 5px; border: 1px solid rgb(204, 204, 204); max-width: 100%; font-size: 16.363636016845703px; font-family: 宋体; line-height: 26.666667938232422px; background-color: rgb(248, 247, 245); word-wrap: break-word !important; box-sizing: border-box !important;">

<p>这里开始添加你的代码</p>

</div>
</body>
</html>


参考资料:百度经验-不落泪的天使

 

一个有用的手机页面模版

标签:

原文地址:http://www.cnblogs.com/robothy/p/4634160.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!