pure css做的手机页面

  1 <!doctype html>
  2 <html>
  3 <head>
  4 <meta http-equiv="Content-type" content="text/html; charset=utf-8">
  5 <!--缩放比例以及允许缩放-->
  6 <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
  7 <!--格式的检测,电话,邮箱-->
  8 <meta name="format-detection" content="telephone=no, email=no" />
  9 <!--是否显示苹果工具栏和菜单栏-->
 10 <meta name="apple-mobile-web-app-capable" content="yes" />
 11 <!--状态栏样式-->
 12 <meta name="apple-mobile-web-app-status-bar-style" content="black" />
 13 <title>手机app-登陆</title>
 14 <!--[if lte IE 8]>
 15     <link rel="stylesheet" type="text/css" href="pure0.6.0/grids-responsive-old-ie-min.css">
 16 <![endif]-->
 17 <!--[if gt IE 8]><!-->
 18 <link rel="stylesheet" type="text/css" href="pure0.6.0/pure-min.css">
 19 <!--<![endif]-->
 20 <style>
 21 html, button, input, select, textarea, .pure-g [class *= "pure-u"], .pure-g-r [class *= "pure-u"] {
 22     font-family: ‘Microsoft Yahei‘, "微软雅黑", arial, "宋体", sans-serif;
 23 }
 24 .header {
 25     background-color: #00ccff;
 26     height: 2em;
 27     text-align: center;
 28     padding-top: 1em;
 29     color: #ffffff;
 30     font-weight: bold;
 31     font-size: 18px;
 32 }
 33 .footer-head {
 34     padding-top: 1.2em;
 35     padding-bottom: 1.2em;
 36     border-top: 1px solid #cccccc;
 37     margin-top: 1em;
 38 }
 39 .footer-head a {
 40     text-decoration: none;
 41     text-align: center;
 42     font-size: 14px;
 43     color: #bbbbbb;
 44 }
 45 .footer {
 46     border-top: 1px solid #cccccc;
 47     text-align: center;
 48     background-color: #eeeeee;
 49     padding-top: 1.2em;
 50     padding-bottom: 1.2em;
 51     font-size: 12px;
 52     color: #999999;
 53     width: inherit;
 54 }
 55 .ValidateCode{  margin:0.1em; margin-left:1em; }
 56 .ValidateCode img{ }
 57 .pure-f-r {
 58     float: right;
 59 }
 60 .pure-f-l {
 61     float: left;
 62 }
 63 .link {
 64 }
 65 .link a {
 66     color: #999999;
 67     text-decoration: none;
 68 }
 69 </style>
 70 </head>
 71 <body>
 72 <div class="pure-g">
 73   <div class="pure-u-1">
 74     <div class="header">登陆</div>
 75   </div>
 76   <div class="pure-u-1"></div>
 77   <div class="pure-u-1-6"></div>
 78   <div class="pure-u-2-3">
 79     <form class="pure-form pure-g main">
 80       <fieldset class="pure-group pure-u-1">
 81         <input type="text" class="pure-input-1-1 pure-u-1" placeholder="Username">
 82         <input type="text" class="pure-input-1-1 pure-u-1" placeholder="Password">
 83       </fieldset>
 84       <div class="pure-u-1-2">
 85         <input type="text" class="pure-u-1" placeholder="验证码">
 86       </div>
 87       <div class="pure-u-1-2"> <div class="pure-u-1 ValidateCode"><img src="ValidateCode.png" style="margin:0 auto;" class="pure-input-1-1"/></div></div>
 88       <button type="submit" class="pure-button pure-u-1 pure-button-primary" style="margin-top:0.5em;">登陆</button>
 89       <div class="pure-u-1" style="padding-top:1em;">
 90         <div class="pure-g">
 91           <div class="pure-u-1-2">
 92             <div class="link pure-f-l"><a href="/">免费注册</a></div>
 93           </div>
 94           <div class="pure-u-1-2">
 95             <div class="link pure-f-r"><a href="/">找回密码</a></div>
 96           </div>
 97         </div>
 98       </div>
 99     </form>
100   </div>
101   <div class="pure-u-1-6"></div>
102   <div class="pure-u-1">
103     <div class="footer-head pure-g"> <a href="/" class="pure-u-1-4">登陆</a> <a href="/" class="pure-u-1-4">注册</a> <a href="/" class="pure-u-1-4">反馈</a> <a href="/" class="pure-u-1-4">回到顶部</a> </div>
104   </div>
105
106   <div class="pure-u-1">
107     <div class="footer">Copyright 2011 - 2020  All Rights Reserved. 版权所有:1111</div>
108   </div>
109 </div>
110 </body>
111 </html>

时间: 2024-08-29 11:59:55

pure css做的手机页面的相关文章

pure css做的手机版博客园(我自己博客)

源码如下: 1 <!doctype html> 2 <html> 3 <head> 4 <meta http-equiv="Content-type" content="text/html; charset=utf-8"> 5 <!--缩放比例以及允许缩放--> 6 <meta name="viewport" content="width=device-width, in

pure css做的pc登陆界面

源码如下: 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <meta http-equiv=

css做的后台管理页面,不考虑ie8一下的

<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>盒子模型</title> <style type="text/css"> * { margin:0; padding:0; } html, body { height:100%; width:100%; overflow:hidden; } .wrap { he

html div+css做页面布局

http://blog.csdn.net/mercop/article/details/7882000 HTML CSS + DIV实现整体布局 1.技术目标: 开发符合W3C标准的Web页面 理解盒子模型 实现DIV+CSS整体布局 2.什么是W3C标准? W3C:World Wide Web Consortium,万维网联盟    W3C的职能:负责制定和维护Web行业标准    W3C标准包括一系列的标准: HTML内容方面:XHTML 样式美化方面:CSS 结构文档访问方面:DOM 页面

关于写手机页面demo的准备工作

写手机页面,存在不同的手机屏幕分辨率的问题,因此,怎样做到统一的画面展示,是我想要寻找的答案. 虽然也搜寻过一些例子,不过还是不确定那种会更好. 目前,想来做个笔记,记录其中的一个. 首先页面中单位不再是用 px来写,而是em. 其次,medioadaption.css是需要的,这里是一个例子 @media screen and (min-width:1080px){html,body{ font-size:36px;}}@media screen and (min-width:720px) a

Pure CSS 的网格布局(比bootstrap小很多且易扩展的css UI)

(转自百度经验)http://jingyan.baidu.com/article/48a42057c44fdba9242504dd.html Pure是一个简单.实用的CSS框架,鉴于目前网上对pure的资料比较少,所以我想把使用pure的一些经验介绍给大家,相信你看完本文后也会爱上pure. Pure包含多个模块:Base(基本样式).Grids(网格系统).Forms(表单).Buttons(按钮).Tables(表格).Menus(菜单),本文主要介绍如何使用Grids(网格系统). 1.

[转载] ul li css 做横向菜单

原文地址: http://www.cnblogs.com/amylis_chen/archive/2011/09/24/2188398.html 第一步:建立一个无序列表 我们先建立一个无序列表,来建立菜单的结构.代码是: <ul> <li><a href="1">首页</a></li> <li><a href="2">产品介绍</a></li> <li

如何做好一个手机页面

最近在看手机网页是如何做的,经过学习和你们一起分享一下希望可以在以后的学习中大家不用那么费劲. 你们猜那个是我??哈哈 好了,废话不多说,正题要紧..... 我们做一个手机网站,首先要清楚一个目的,你是要做一个电脑站要适应到手机呢,还是纯粹的手机站,像APP一样的或者手机浏览的网页.两者大概都差不多! 我今天给大家介绍的是哈哈哈,后者. 你可以选择框架或者不用框架.... 首先在你的头文件声明中要声明这几个meta.... <meta name="viewport" conten

绕过限制,在PC上调试微信手机页面

场景 假设一个手机页面,开发者对其做了限制,导致只能在微信客户端中打开.而众所周知手机上非常不利于调试页面,所以需要能在电脑上打开并进行调试.这里针对常见的三种页面做一下分析,一一绕过其限制,(当然不要拿去干坏事) 工具准备 方便调试的浏览器.个人喜欢Chrome,本文基于Chrome 43.0.2357.130 (正式版本) m (32 位)环境. 抓包工具,推荐fiddler4,当然你比较喜欢Wireshark的话也可以,反正只要是能抓到cookies就都可以 能编辑cookies的浏览器插